Browse Source

feat(nc-gui): skipping update kanban stack meta in share view

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
e36b125dd4
  1. 7
      packages/nc-gui/components/smartsheet/Kanban.vue

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

@ -9,6 +9,7 @@ import {
IsGridInj, IsGridInj,
IsKanbanInj, IsKanbanInj,
IsLockedInj, IsLockedInj,
IsPublicInj,
MetaInj, MetaInj,
OpenNewRecordFormHookInj, OpenNewRecordFormHookInj,
ReadonlyInj, ReadonlyInj,
@ -32,6 +33,8 @@ const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()
const isLocked = inject(IsLockedInj, ref(false)) const isLocked = inject(IsLockedInj, ref(false))
const isPublic = inject(IsPublicInj, ref(false))
const expandedFormDlg = ref(false) const expandedFormDlg = ref(false)
const expandedFormRow = ref<RowType>() const expandedFormRow = ref<RowType>()
@ -164,7 +167,9 @@ const handleDeleteStackConfirmClick = async () => {
const handleCollapseStack = async (stackIdx: number) => { const handleCollapseStack = async (stackIdx: number) => {
groupingFieldColOptions.value[stackIdx].collapsed = !groupingFieldColOptions.value[stackIdx].collapsed groupingFieldColOptions.value[stackIdx].collapsed = !groupingFieldColOptions.value[stackIdx].collapsed
await updateKanbanStackMeta() if (!isPublic.value) {
await updateKanbanStackMeta()
}
} }
openNewRecordFormHook?.on(async (stackTitle) => { openNewRecordFormHook?.on(async (stackTitle) => {

Loading…
Cancel
Save