diff --git a/packages/nc-gui/components/workspace/CollaboratorsList.vue b/packages/nc-gui/components/workspace/CollaboratorsList.vue index a2ed3d6822..76385e45be 100644 --- a/packages/nc-gui/components/workspace/CollaboratorsList.vue +++ b/packages/nc-gui/components/workspace/CollaboratorsList.vue @@ -7,6 +7,8 @@ const props = defineProps<{ const { workspaceRoles } = useRoles() +const { user } = useGlobal() + const workspaceStore = useWorkspace() const { removeCollaborator, updateCollaborator: _updateCollaborator, loadWorkspace } = workspaceStore @@ -289,24 +291,13 @@ const isDeleteOrUpdateAllowed = (user) => { - - - {{ $t('labels.assignAs') }} - - - - Remove user + {{ record.id === user.id ? 'Leave workspace' : 'Remove user' }}