Browse Source

refactor/gui-v2-user-management-invite-ui-improvements

pull/2854/head
Muhammed Mustafa 2 years ago
parent
commit
b570f25209
  1. 8
      packages/nc-gui-v2/components/dashboard/settings/UserManagement.vue

8
packages/nc-gui-v2/components/dashboard/settings/UserManagement.vue

@ -38,7 +38,6 @@ const debouncedSearchText = useDebounce(searchText, 300)
const loadUsers = async (page = currentPage, limit = currentLimit) => {
try {
if (!project.value?.id) return
isLoading = true
// TODO: Types of api is not correct
const response = await $api.auth.projectUserList(project.value?.id, <any> {
@ -55,8 +54,6 @@ const loadUsers = async (page = currentPage, limit = currentLimit) => {
} catch (e: any) {
console.error(e)
toast.error(await extractSdkResponseErrorMsg(e))
} finally {
isLoading = false
}
}
@ -132,7 +129,12 @@ const copyInviteUrl = (user: User) => {
onMounted(async () => {
if (!users) {
isLoading = true
try {
await loadUsers()
} finally {
isLoading = false
}
}
})

Loading…
Cancel
Save