diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index 677cdf91ef..6af131bbc9 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -50,8 +50,8 @@ const { updateKanbanMeta, addEmptyRow, groupingFieldColOptions, + updateKanbanStackMeta, groupingField, - groupingFieldColumn, countByStack, deleteStack, } = useKanbanViewData(meta, view as any) @@ -187,8 +187,9 @@ const handleDeleteStackConfirmClick = async () => { deleteStackVModel.value = false } -const collapseStack = () => { - // TODO: +const handleCollapseStack = async (stackIdx: number) => { + groupingFieldColOptions.value[stackIdx].collapsed = !groupingFieldColOptions.value[stackIdx].collapsed + await updateKanbanStackMeta() } const renameStack = () => { @@ -218,7 +219,7 @@ openNewRecordFormHook?.on(async (stackTitle) => { :move="onMoveCallback" @change="onMoveStack($event)" > -