fix(sh-admin): resolve i18n strings correctly on error toast with remove member action (#4429)
This commit is contained in:
committed by
GitHub
parent
79bf0d0363
commit
30079b842d
112
packages/hoppscotch-sh-admin/src/components.d.ts
vendored
112
packages/hoppscotch-sh-admin/src/components.d.ts
vendored
@@ -1,67 +1,63 @@
|
|||||||
// generated by unplugin-vue-components
|
// generated by unplugin-vue-components
|
||||||
// We suggest you to commit this file into source control
|
// We suggest you to commit this file into source control
|
||||||
// Read more: https://github.com/vuejs/core/pull/3399
|
// Read more: https://github.com/vuejs/core/pull/3399
|
||||||
import '@vue/runtime-core';
|
import '@vue/runtime-core'
|
||||||
|
|
||||||
export {};
|
export {}
|
||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
AppHeader: typeof import('./components/app/Header.vue')['default'];
|
AppHeader: typeof import('./components/app/Header.vue')['default']
|
||||||
AppLogin: typeof import('./components/app/Login.vue')['default'];
|
AppLogin: typeof import('./components/app/Login.vue')['default']
|
||||||
AppLogout: typeof import('./components/app/Logout.vue')['default'];
|
AppLogout: typeof import('./components/app/Logout.vue')['default']
|
||||||
AppModal: typeof import('./components/app/Modal.vue')['default'];
|
AppModal: typeof import('./components/app/Modal.vue')['default']
|
||||||
AppSidebar: typeof import('./components/app/Sidebar.vue')['default'];
|
AppSidebar: typeof import('./components/app/Sidebar.vue')['default']
|
||||||
AppToast: typeof import('./components/app/Toast.vue')['default'];
|
AppToast: typeof import('./components/app/Toast.vue')['default']
|
||||||
DashboardMetricsCard: typeof import('./components/dashboard/MetricsCard.vue')['default'];
|
DashboardMetricsCard: typeof import('./components/dashboard/MetricsCard.vue')['default']
|
||||||
HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary'];
|
HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary']
|
||||||
HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary'];
|
HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary']
|
||||||
HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor'];
|
HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor']
|
||||||
HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete'];
|
HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete']
|
||||||
HoppSmartCheckbox: typeof import('@hoppscotch/ui')['HoppSmartCheckbox'];
|
HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal']
|
||||||
HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal'];
|
HoppSmartInput: typeof import('@hoppscotch/ui')['HoppSmartInput']
|
||||||
HoppSmartInput: typeof import('@hoppscotch/ui')['HoppSmartInput'];
|
HoppSmartItem: typeof import('@hoppscotch/ui')['HoppSmartItem']
|
||||||
HoppSmartIntersection: typeof import('@hoppscotch/ui')['HoppSmartIntersection'];
|
HoppSmartLink: typeof import('@hoppscotch/ui')['HoppSmartLink']
|
||||||
HoppSmartItem: typeof import('@hoppscotch/ui')['HoppSmartItem'];
|
HoppSmartModal: typeof import('@hoppscotch/ui')['HoppSmartModal']
|
||||||
HoppSmartLink: typeof import('@hoppscotch/ui')['HoppSmartLink'];
|
HoppSmartPicture: typeof import('@hoppscotch/ui')['HoppSmartPicture']
|
||||||
HoppSmartModal: typeof import('@hoppscotch/ui')['HoppSmartModal'];
|
HoppSmartPlaceholder: typeof import('@hoppscotch/ui')['HoppSmartPlaceholder']
|
||||||
HoppSmartPicture: typeof import('@hoppscotch/ui')['HoppSmartPicture'];
|
HoppSmartSelectWrapper: typeof import('@hoppscotch/ui')['HoppSmartSelectWrapper']
|
||||||
HoppSmartPlaceholder: typeof import('@hoppscotch/ui')['HoppSmartPlaceholder'];
|
HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner']
|
||||||
HoppSmartSelectWrapper: typeof import('@hoppscotch/ui')['HoppSmartSelectWrapper'];
|
HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab']
|
||||||
HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner'];
|
HoppSmartTable: typeof import('@hoppscotch/ui')['HoppSmartTable']
|
||||||
HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab'];
|
HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs']
|
||||||
HoppSmartTable: typeof import('@hoppscotch/ui')['HoppSmartTable'];
|
IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default']
|
||||||
HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs'];
|
IconLucideCheck: typeof import('~icons/lucide/check')['default']
|
||||||
HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle'];
|
IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default']
|
||||||
IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default'];
|
IconLucideHelpCircle: typeof import('~icons/lucide/help-circle')['default']
|
||||||
IconLucideCheck: typeof import('~icons/lucide/check')['default'];
|
IconLucideInbox: typeof import('~icons/lucide/inbox')['default']
|
||||||
IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default'];
|
IconLucideSearch: typeof import('~icons/lucide/search')['default']
|
||||||
IconLucideHelpCircle: typeof import('~icons/lucide/help-circle')['default'];
|
SettingsAuthProvider: typeof import('./components/settings/AuthProvider.vue')['default']
|
||||||
IconLucideInbox: typeof import('~icons/lucide/inbox')['default'];
|
SettingsConfigurations: typeof import('./components/settings/Configurations.vue')['default']
|
||||||
IconLucideSearch: typeof import('~icons/lucide/search')['default'];
|
SettingsDataSharing: typeof import('./components/settings/DataSharing.vue')['default']
|
||||||
IconLucideUser: typeof import('~icons/lucide/user')['default'];
|
SettingsReset: typeof import('./components/settings/Reset.vue')['default']
|
||||||
SettingsAuthProvider: typeof import('./components/settings/AuthProvider.vue')['default'];
|
SettingsServerRestart: typeof import('./components/settings/ServerRestart.vue')['default']
|
||||||
SettingsConfigurations: typeof import('./components/settings/Configurations.vue')['default'];
|
SettingsSmtpConfiguration: typeof import('./components/settings/SmtpConfiguration.vue')['default']
|
||||||
SettingsDataSharing: typeof import('./components/settings/DataSharing.vue')['default'];
|
SetupDataSharingAndNewsletter: typeof import('./components/setup/DataSharingAndNewsletter.vue')['default']
|
||||||
SettingsReset: typeof import('./components/settings/Reset.vue')['default'];
|
TeamsAdd: typeof import('./components/teams/Add.vue')['default']
|
||||||
SettingsServerRestart: typeof import('./components/settings/ServerRestart.vue')['default'];
|
TeamsDetails: typeof import('./components/teams/Details.vue')['default']
|
||||||
SettingsSmtpConfiguration: typeof import('./components/settings/SmtpConfiguration.vue')['default'];
|
TeamsInvite: typeof import('./components/teams/Invite.vue')['default']
|
||||||
SetupDataSharingAndNewsletter: typeof import('./components/setup/DataSharingAndNewsletter.vue')['default'];
|
TeamsMembers: typeof import('./components/teams/Members.vue')['default']
|
||||||
TeamsAdd: typeof import('./components/teams/Add.vue')['default'];
|
TeamsPendingInvites: typeof import('./components/teams/PendingInvites.vue')['default']
|
||||||
TeamsDetails: typeof import('./components/teams/Details.vue')['default'];
|
Tippy: typeof import('vue-tippy')['Tippy']
|
||||||
TeamsInvite: typeof import('./components/teams/Invite.vue')['default'];
|
Tokens: typeof import('./components/tokens/index.vue')['default']
|
||||||
TeamsMembers: typeof import('./components/teams/Members.vue')['default'];
|
TokensGenerateModal: typeof import('./components/tokens/GenerateModal.vue')['default']
|
||||||
TeamsPendingInvites: typeof import('./components/teams/PendingInvites.vue')['default'];
|
TokensList: typeof import('./components/tokens/List.vue')['default']
|
||||||
Tippy: typeof import('vue-tippy')['Tippy'];
|
TokensOverview: typeof import('./components/tokens/Overview.vue')['default']
|
||||||
Tokens: typeof import('./components/tokens/index.vue')['default'];
|
UiAutoResetIcon: typeof import('./components/ui/AutoResetIcon.vue')['default']
|
||||||
TokensGenerateModal: typeof import('./components/tokens/GenerateModal.vue')['default'];
|
UsersDetails: typeof import('./components/users/Details.vue')['default']
|
||||||
TokensList: typeof import('./components/tokens/List.vue')['default'];
|
UsersInviteModal: typeof import('./components/users/InviteModal.vue')['default']
|
||||||
TokensOverview: typeof import('./components/tokens/Overview.vue')['default'];
|
UsersSharedRequests: typeof import('./components/users/SharedRequests.vue')['default']
|
||||||
TokensToken: typeof import('./components/tokens/Token.vue')['default'];
|
UsersSuccessInviteModal: typeof import('./components/users/SuccessInviteModal.vue')['default']
|
||||||
UiAutoResetIcon: typeof import('./components/ui/AutoResetIcon.vue')['default'];
|
|
||||||
UsersDetails: typeof import('./components/users/Details.vue')['default'];
|
|
||||||
UsersInviteModal: typeof import('./components/users/InviteModal.vue')['default'];
|
|
||||||
UsersSharedRequests: typeof import('./components/users/SharedRequests.vue')['default'];
|
|
||||||
UsersSuccessInviteModal: typeof import('./components/users/SuccessInviteModal.vue')['default'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ const removeExistingTeamMember = async (userID: string, index: number) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
compiledErrorMessage
|
compiledErrorMessage
|
||||||
? toast.error(compiledErrorMessage)
|
? toast.error(t(compiledErrorMessage))
|
||||||
: toast.error(t('state.remove_member_failure'));
|
: toast.error(t('state.remove_member_failure'));
|
||||||
} else {
|
} else {
|
||||||
team.value.teamMembers = team.value.teamMembers?.filter(
|
team.value.teamMembers = team.value.teamMembers?.filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user