Browse Source

feat(nc-gui): add isUIAllowed('xcDatatableEditable') to kanban

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
28de902d7a
  1. 2
      packages/nc-gui/components/smartsheet/Kanban.vue
  2. 2
      packages/nc-gui/composables/useKanbanViewData.ts

2
packages/nc-gui/components/smartsheet/Kanban.vue

@ -243,7 +243,7 @@ onMounted(() => {
</div>
</a-menu-item>
<a-menu-item
v-if="stack.title !== 'uncategorized'"
v-if="stack.title !== 'uncategorized' && isUIAllowed('xcDatatableEditable')"
@click="handleDeleteStackClick(stack.title, stackIdx)"
>
<div class="py-2 flex gap-2 items-center">

2
packages/nc-gui/composables/useKanbanViewData.ts

@ -210,7 +210,7 @@ export function useKanbanViewData(
}
async function updateKanbanMeta(updateObj: Partial<KanbanType>) {
if (!viewMeta?.value?.id) return
if (!viewMeta?.value?.id || !isUIAllowed('xcDatatableEditable')) return
await $api.dbView.kanbanUpdate(viewMeta.value.id, {
...kanbanMetaData.value,
...updateObj,

Loading…
Cancel
Save