From 28de902d7a937116074e34a3097fec33edba027b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 21 Sep 2022 15:36:25 +0800 Subject: [PATCH] feat(nc-gui): add isUIAllowed('xcDatatableEditable') to kanban --- packages/nc-gui/components/smartsheet/Kanban.vue | 2 +- packages/nc-gui/composables/useKanbanViewData.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index e48777dc1d..381d6976ee 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -243,7 +243,7 @@ onMounted(() => {
diff --git a/packages/nc-gui/composables/useKanbanViewData.ts b/packages/nc-gui/composables/useKanbanViewData.ts index 0fa9085868..ff284de51c 100644 --- a/packages/nc-gui/composables/useKanbanViewData.ts +++ b/packages/nc-gui/composables/useKanbanViewData.ts @@ -210,7 +210,7 @@ export function useKanbanViewData( } async function updateKanbanMeta(updateObj: Partial) { - if (!viewMeta?.value?.id) return + if (!viewMeta?.value?.id || !isUIAllowed('xcDatatableEditable')) return await $api.dbView.kanbanUpdate(viewMeta.value.id, { ...kanbanMetaData.value, ...updateObj,