Browse Source

chore(gui-v2): cleanup imports

pull/3109/head
braks 2 years ago
parent
commit
7e88391b4f
  1. 2
      packages/nc-gui-v2/components.d.ts
  2. 14
      packages/nc-gui-v2/components/tabs/auth/UserManagement.vue

2
packages/nc-gui-v2/components.d.ts vendored

@ -70,8 +70,10 @@ declare module '@vue/runtime-core' {
MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default'] MaterialSymbolsAttachFile: typeof import('~icons/material-symbols/attach-file')['default']
MaterialSymbolsChevronLeftRounded: typeof import('~icons/material-symbols/chevron-left-rounded')['default'] MaterialSymbolsChevronLeftRounded: typeof import('~icons/material-symbols/chevron-left-rounded')['default']
MaterialSymbolsChevronRightRounded: typeof import('~icons/material-symbols/chevron-right-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'] MaterialSymbolsFileCopyOutline: typeof import('~icons/material-symbols/file-copy-outline')['default']
MaterialSymbolsRocketLaunchOutline: typeof import('~icons/material-symbols/rocket-launch-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'] MaterialSymbolsTranslate: typeof import('~icons/material-symbols/translate')['default']
MaterialSymbolsWarning: typeof import('~icons/material-symbols/warning')['default'] MaterialSymbolsWarning: typeof import('~icons/material-symbols/warning')['default']
MdiAccountCircle: typeof import('~icons/mdi/account-circle')['default'] MdiAccountCircle: typeof import('~icons/mdi/account-circle')['default']

14
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 FeedbackForm from './user-management/FeedbackForm.vue'
import { import {
extractSdkResponseErrorMsg, extractSdkResponseErrorMsg,
onMounted,
projectRoleTagColors, projectRoleTagColors,
ref, ref,
useApi, useApi,
@ -134,21 +135,16 @@ const resendInvite = async (user: User) => {
const copyInviteUrl = (user: User) => { const copyInviteUrl = (user: User) => {
if (!user.invite_token) return if (!user.invite_token) return
const getInviteUrl = (token: string) => `${dashboardUrl}/signup/${token}` copy(`${dashboardUrl}/signup/${user.invite_token}`)
copy(getInviteUrl(user.invite_token))
message.success('Invite url copied to clipboard') message.success('Invite url copied to clipboard')
} }
onMounted(async () => { onMounted(() => {
if (!users) { if (!users) {
isLoading = true isLoading = true
try {
await loadUsers() loadUsers().finally(() => (isLoading = false))
} finally {
isLoading = false
}
} }
}) })

Loading…
Cancel
Save