diff --git a/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue b/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue index 7b6c35106e..9ebbb84391 100644 --- a/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue +++ b/packages/nc-gui-v2/components/tabs/auth/UserManagement.vue @@ -22,6 +22,8 @@ const toast = useToast() const { $api, $e } = useNuxtApp() const { project } = useProject() const { copy } = useClipboard() +const { isUIAllowed } = useUIPermission() +const { dashboardUrl } = $(useDashboard()) let users = $ref(null) let selectedUser = $ref(null) @@ -80,6 +82,7 @@ const deleteUser = async () => { await loadUsers() showUserDeleteModal = false } catch (e: any) { + showUserDeleteModal = false console.error(e) toast.error(await extractSdkResponseErrorMsg(e)) } @@ -120,7 +123,7 @@ const resendInvite = async (user: User) => { const copyInviteUrl = (user: User) => { if (!user.invite_token) return - const getInviteUrl = (token: string) => `${location.origin}${location.pathname}#/user/authentication/signup/${token}` + const getInviteUrl = (token: string) => `${dashboardUrl}/user/authentication/signup/${token}` copy(getInviteUrl(user.invite_token)) toast.success('Invite url copied to clipboard') @@ -158,8 +161,8 @@ watchDebounced(searchText, () => loadUsers(), { debounce: 300, maxWait: 600 }) This action will remove this user from this project
- Cancel - Confirm + {{ $t('general.cancel') }} + {{ $t('general.confirm') }}
@@ -179,10 +182,10 @@ watchDebounced(searchText, () => loadUsers(), { debounce: 300, maxWait: 600 })
Reload
- +
-
Invite Team
+
{{ $t('activity.inviteTeam') }}
@@ -192,15 +195,15 @@ watchDebounced(searchText, () => loadUsers(), { debounce: 300, maxWait: 600 })
-
E-mail
+
{{ $t('labels.email') }}
-
Role
+
{{ $t('objects.role') }}
-
Actions
+
{{ $t('labels.actions') }}
@@ -209,14 +212,14 @@ watchDebounced(searchText, () => loadUsers(), { debounce: 300, maxWait: 600 }) {{ user.email }}
-
+
{{ user.roles }}