From a03d52b325c95baef2daad831d73f786ebf98af1 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 24 Sep 2022 17:09:58 +0800 Subject: [PATCH] feat(nc-gui): kanban v-e --- .../smartsheet-toolbar/KanbanStackEditOrAdd.vue | 2 +- .../nc-gui/components/smartsheet-toolbar/StackedBy.vue | 6 +++++- packages/nc-gui/components/smartsheet/Kanban.vue | 10 +++++++--- packages/nc-gui/composables/useKanbanViewData.ts | 3 ++- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue b/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue index 7f34008b9c..bbf74c1d45 100644 --- a/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet-toolbar/KanbanStackEditOrAdd.vue @@ -29,7 +29,7 @@ provide(IsKanbanInj, ref(true)) >
diff --git a/packages/nc-gui/components/smartsheet-toolbar/StackedBy.vue b/packages/nc-gui/components/smartsheet-toolbar/StackedBy.vue index 9cdc149e08..7d30f0b2b1 100644 --- a/packages/nc-gui/components/smartsheet-toolbar/StackedBy.vue +++ b/packages/nc-gui/components/smartsheet-toolbar/StackedBy.vue @@ -80,7 +80,11 @@ const handleChange = () => { overlay-class-name="nc-dropdown-kanban-stacked-by-menu" >
- +
diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index f83a61cfdc..fe7e8a8e40 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -269,6 +269,7 @@ onMounted(async () => {
@@ -276,7 +277,7 @@ onMounted(async () => { {{ $t('activity.addNewRecord') }}
- +
{{ $t('activity.kanban.collapseStack') }} @@ -284,6 +285,7 @@ onMounted(async () => {
@@ -426,8 +428,10 @@ onMounted(async () => { {{ $t('msg.info.deleteKanbanStackConfirmation', { stackToBeDeleted, groupingField }) }}
diff --git a/packages/nc-gui/composables/useKanbanViewData.ts b/packages/nc-gui/composables/useKanbanViewData.ts index bf2f6a90d1..a316a43dd7 100644 --- a/packages/nc-gui/composables/useKanbanViewData.ts +++ b/packages/nc-gui/composables/useKanbanViewData.ts @@ -18,7 +18,7 @@ export function useKanbanViewData( const { t } = useI18n() const { api } = useApi() const { project } = useProject() - const { $api } = useNuxtApp() + const { $e, $api } = useNuxtApp() const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() const { sharedView, fetchSharedViewData } = useSharedView() const { isUIAllowed } = useUIPermission() @@ -363,6 +363,7 @@ export function useKanbanViewData( stackMetaObj.value[kanbanMetaData.value.grp_column_id!].splice(stackIdx, 1) groupingFieldColOptions.value.splice(stackIdx, 1) await updateKanbanStackMeta() + $e('a:kanban:delete-stack') } catch (e: any) { message.error(await extractSdkResponseErrorMsg(e)) }