From 16b95bc717c4fb8038d05bba2d2b0b5a47b1bad5 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 14 Sep 2022 18:26:30 +0800 Subject: [PATCH] feat(nc-gui): add nc-kanban-btn & refactor handleSubmit --- .../KanbanStackEditOrAdd.vue | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue b/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue index f7ed744d61..8f40e26d34 100644 --- a/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue @@ -24,33 +24,34 @@ const isLocked = inject(IsLockedInj, ref(false)) const addOrEditStackDropdown = ref(false) +const handleSubmit = async () => { + addOrEditStackDropdown.value = false + await loadKanbanMeta() + await loadKanbanData() +} + provide(IsKanbanInj, ref(true))