From 1f866a1443ba545701c66884ca32b82abdd94dbf Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 21 Sep 2022 12:22:35 +0800 Subject: [PATCH] feat(nc-gui): lock kanban view --- packages/nc-gui/components/smartsheet/Kanban.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 3aebe07a3c..e48777dc1d 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -8,6 +8,7 @@ import { IsGalleryInj, IsGridInj, IsKanbanInj, + IsLockedInj, MetaInj, OpenNewRecordFormHookInj, ReadonlyInj, @@ -29,6 +30,8 @@ const reloadKanbanMetaHook = inject(ReloadKanbanMetaHookInj) const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) +const isLocked = inject(IsLockedInj, ref(false)) + const expandedFormDlg = ref(false) const expandedFormRow = ref() @@ -202,7 +205,7 @@ onMounted(() => { v-if="!stack.collapsed" :key="stack.id" class="mx-4 !bg-[#f0f2f5] flex flex-col w-[280px] h-full rounded-[12px]" - :class="{ 'not-draggable': stack.id === 'uncategorized' }" + :class="{ 'not-draggable': stack.id === 'uncategorized' || isLocked }" head-style="padding-bottom: 0px;" body-style="padding: 0px; height: 100%;" > @@ -262,6 +265,7 @@ onMounted(() => { draggable=".nc-kanban-item" group="kanban-card" class="h-full" + filter=".not-draggable" @change="onMove($event, stack.title)" >