diff --git a/packages/nc-gui/components/dlg/WorkspaceDelete.vue b/packages/nc-gui/components/dlg/WorkspaceDelete.vue deleted file mode 100644 index 3d1e543ef1..0000000000 --- a/packages/nc-gui/components/dlg/WorkspaceDelete.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - {{ workspace.title }} - - - - - diff --git a/packages/nc-gui/components/workspace/CollaboratorsList.vue b/packages/nc-gui/components/workspace/CollaboratorsList.vue index 8be248a175..581c0aa101 100644 --- a/packages/nc-gui/components/workspace/CollaboratorsList.vue +++ b/packages/nc-gui/components/workspace/CollaboratorsList.vue @@ -66,8 +66,7 @@ const selectAll = computed({ const updateCollaborator = async (collab: any, roles: WorkspaceUserRoles) => { try { - console.log() - await _updateCollaborator(collab.id, roles, currentWorkspace.value.id) + await _updateCollaborator(collab.id, roles, currentWorkspace.value?.id) message.success('Successfully updated user role') collaborators.value?.forEach((collaborator) => { @@ -95,7 +94,7 @@ onMounted(async () => { - + @@ -212,7 +211,7 @@ onMounted(async () => { Remove user diff --git a/packages/nc-gui/components/workspace/Settings.vue b/packages/nc-gui/components/workspace/Settings.vue index 01120ff29c..a154d08eb5 100644 --- a/packages/nc-gui/components/workspace/Settings.vue +++ b/packages/nc-gui/components/workspace/Settings.vue @@ -1,191 +1,3 @@ - - - - - {{ $t('labels.changeWsName') }} - - {{ `${t('objects.workspace')} ${t('general.name')}` }} - - - - - - {{ $t('title.renamingWs') }} - {{ $t('general.cancel') }} - - - {{ $t('title.renamingWs') }} - {{ $t('title.renameWs') }} - - - - - - {{ $t('title.deleteWs') }} - {{ $t('msg.info.wsDeleteDlg') }} - - - {{ $t('msg.info.userConfirmation') }} - - - - - {{ $t('title.deletingWs') }} - {{ $t('title.deleteWs') }} - - - - + - - diff --git a/packages/nc-gui/components/workspace/View.vue b/packages/nc-gui/components/workspace/View.vue index d5f25a9254..8d26186741 100644 --- a/packages/nc-gui/components/workspace/View.vue +++ b/packages/nc-gui/components/workspace/View.vue @@ -44,7 +44,7 @@ const tab = computed({ watch( () => currentWorkspace.value?.title, - (title: string) => { + (title) => { if (!title) return const capitalizedTitle = title.charAt(0).toUpperCase() + title.slice(1) @@ -60,7 +60,7 @@ onMounted(() => { until(() => currentWorkspace.value?.id) .toMatch((v) => !!v) .then(async () => { - await loadCollaborators({} as any, currentWorkspace.value.id) + await loadCollaborators({} as any, currentWorkspace.value!.id) }) })