diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index d297048102..aaabf8065f 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -70,8 +70,10 @@ declare module '@vue/runtime-core' { MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default'] MaterialSymbolsChevronLeftRounded: typeof import('~icons/material-symbols/chevron-left-rounded')['default'] MaterialSymbolsChevronRightRounded: typeof import('~icons/material-symbols/chevron-right-rounded')['default'] + MaterialSymbolsCloseRounded: typeof import('~icons/material-symbols/close-rounded')['default'] MaterialSymbolsFileCopyOutline: typeof import('~icons/material-symbols/file-copy-outline')['default'] MaterialSymbolsRocketLaunchOutline: typeof import('~icons/material-symbols/rocket-launch-outline')['default'] + MaterialSymbolsSendOutline: typeof import('~icons/material-symbols/send-outline')['default'] MaterialSymbolsTranslate: typeof import('~icons/material-symbols/translate')['default'] MaterialSymbolsWarning: typeof import('~icons/material-symbols/warning')['default'] MdiAccountCircle: typeof import('~icons/mdi/account-circle')['default'] diff --git a/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue b/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue index 00d79d8356..d64a0ee3cc 100644 --- a/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue +++ b/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue @@ -4,6 +4,7 @@ import UsersModal from './user-management/UsersModal.vue' import FeedbackForm from './user-management/FeedbackForm.vue' import { extractSdkResponseErrorMsg, + onMounted, projectRoleTagColors, ref, useApi, @@ -134,21 +135,16 @@ const resendInvite = async (user: User) => { const copyInviteUrl = (user: User) => { if (!user.invite_token) return - const getInviteUrl = (token: string) => `${dashboardUrl}/signup/${token}` - - copy(getInviteUrl(user.invite_token)) + copy(`${dashboardUrl}/signup/${user.invite_token}`) message.success('Invite url copied to clipboard') } -onMounted(async () => { +onMounted(() => { if (!users) { isLoading = true - try { - await loadUsers() - } finally { - isLoading = false - } + + loadUsers().finally(() => (isLoading = false)) } })