|
|
@ -91,11 +91,11 @@ const recreate = async () => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (!base.value.id) return |
|
|
|
if (!base.value.id) return |
|
|
|
|
|
|
|
|
|
|
|
const sharedBase = await $api.base.sharedBaseCreate(base.value.id, { |
|
|
|
const createdShareBase = await $api.base.sharedBaseCreate(base.value.id, { |
|
|
|
roles: sharedBase.value?.role || ShareBaseRole.Viewer, |
|
|
|
roles: sharedBase.value?.role || ShareBaseRole.Viewer, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const newBase = sharedBase || {} |
|
|
|
const newBase = createdShareBase || {} |
|
|
|
|
|
|
|
|
|
|
|
sharedBase.value = { ...newBase, role: sharedBase.value?.role } |
|
|
|
sharedBase.value = { ...newBase, role: sharedBase.value?.role } |
|
|
|
} catch (e: any) { |
|
|
|
} catch (e: any) { |
|
|
|