From e36b125dd4c4c618425498e396c8407b3d0b5044 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 23 Sep 2022 15:10:14 +0800 Subject: [PATCH] feat(nc-gui): skipping update kanban stack meta in share view --- packages/nc-gui/components/smartsheet/Kanban.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 230ddfeb00..a74fa07ae2 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -9,6 +9,7 @@ import { IsGridInj, IsKanbanInj, IsLockedInj, + IsPublicInj, MetaInj, OpenNewRecordFormHookInj, ReadonlyInj, @@ -32,6 +33,8 @@ const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook() const isLocked = inject(IsLockedInj, ref(false)) +const isPublic = inject(IsPublicInj, ref(false)) + const expandedFormDlg = ref(false) const expandedFormRow = ref() @@ -164,7 +167,9 @@ const handleDeleteStackConfirmClick = async () => { const handleCollapseStack = async (stackIdx: number) => { groupingFieldColOptions.value[stackIdx].collapsed = !groupingFieldColOptions.value[stackIdx].collapsed - await updateKanbanStackMeta() + if (!isPublic.value) { + await updateKanbanStackMeta() + } } openNewRecordFormHook?.on(async (stackTitle) => {