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. 5
      packages/nc-gui/components/smartsheet/Kanban.vue

5
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,8 +167,10 @@ 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
if (!isPublic.value) {
await updateKanbanStackMeta() await updateKanbanStackMeta()
} }
}
openNewRecordFormHook?.on(async (stackTitle) => { openNewRecordFormHook?.on(async (stackTitle) => {
const newRow = await addEmptyRow() const newRow = await addEmptyRow()

Loading…
Cancel
Save