Browse Source

chore/gui-v2-user-management-share-base-cleanup

pull/2854/head
Muhammed Mustafa 2 years ago
parent
commit
ab2520603f
  1. 4
      packages/nc-gui-v2/components/dashboard/settings/user-management/ShareBase.vue

4
packages/nc-gui-v2/components/dashboard/settings/user-management/ShareBase.vue

@ -67,7 +67,7 @@ const disableSharedBase = async () => {
if (!project.value.id) return
await $api.project.sharedBaseDisable(project.value.id)
base = {}
base = null
} catch (e: any) {
console.error(e)
toast.error(await extractSdkResponseErrorMsg(e))
@ -81,7 +81,7 @@ const recreate = async () => {
if (!project.value.id) return
const sharedBase = await $api.project.sharedBaseCreate(project.value.id, {
roles: base?.role || 'viewer',
roles: base?.role || ShareBaseRole.Viewer,
})
const newBase = sharedBase || {}
base = { ...newBase, role: base?.role }

Loading…
Cancel
Save