From fcaae4774928952c1200e686513d06ff0560d868 Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Tue, 3 Oct 2023 22:59:05 +0530 Subject: [PATCH] fix: prevented unwanted rerender --- .../components/project/AccessSettings.vue | 67 +++++++------------ 1 file changed, 23 insertions(+), 44 deletions(-) diff --git a/packages/nc-gui/components/project/AccessSettings.vue b/packages/nc-gui/components/project/AccessSettings.vue index 37ba772221..401675140e 100644 --- a/packages/nc-gui/components/project/AccessSettings.vue +++ b/packages/nc-gui/components/project/AccessSettings.vue @@ -74,12 +74,6 @@ const loadListData = async ($state: any) => { $state.loaded() } -const reloadCollabs = async () => { - currentPage.value = 0 - collaborators.value = [] - await loadCollaborators() -} - const updateCollaborator = async (collab: any, roles: ProjectRoles) => { try { if ( @@ -106,8 +100,7 @@ const updateCollaborator = async (collab: any, roles: ProjectRoles) => { } } catch (e: any) { message.error(await extractSdkResponseErrorMsg(e)) - } finally { - reloadCollabs() + loadCollaborators() } } @@ -180,36 +173,39 @@ onMounted(async () => {
- - - - + + + - - - -
{{ $t('objects.users') }}{{ $t('title.dateJoined') }}{{ $t('general.access') }}Actions{{ $t('objects.users') }}{{ $t('title.dateJoined') }}{{ $t('general.access') }}
+ {{ collab.email }} - {{ timeAgo(collab.created_at) }} + +
+ {{ timeAgo(collab.created_at) }} +
+ -
- - - - -
-