Browse Source

feat: api level restriction

pull/9807/head
Pranav C 3 weeks ago
parent
commit
3cdba84828
  1. 8
      packages/nc-gui/components/dlg/ReAssign/index.vue

8
packages/nc-gui/components/dlg/ReAssign/index.vue

@ -100,6 +100,7 @@ const assignView = async () => {
vModel.value = false vModel.value = false
message.success('View reassigned successfully') message.success('View reassigned successfully')
// if personal view then redirect to default view and reload view list
if (props.view.lock_type === ViewLockType.Personal) { if (props.view.lock_type === ViewLockType.Personal) {
// navigate to default view // navigate to default view
navigateToView({ navigateToView({
@ -107,9 +108,11 @@ const assignView = async () => {
tableId: props.view.fk_model_id, tableId: props.view.fk_model_id,
baseId: props.view.base_id!, baseId: props.view.base_id!,
force: true, force: true,
}).catch(() => {
// ignore
}) })
// if locked view is reassigned, then reload the view list // then reload the view list
viewsStore viewsStore
.loadViews({ .loadViews({
ignoreLoading: true, ignoreLoading: true,
@ -119,9 +122,6 @@ const assignView = async () => {
.catch(() => { .catch(() => {
// ignore // ignore
}) })
.finally(() => {
// navigate to the view
})
} }
} catch (e) { } catch (e) {
await message.error(await extractSdkResponseErrorMsg(e)) await message.error(await extractSdkResponseErrorMsg(e))

Loading…
Cancel
Save