From 226c98edc6649487e037269064677155b14a4472 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 22 Apr 2024 05:37:58 +0000 Subject: [PATCH 1/9] feat(nc-gui): setup for group & filter by this field options in field header context menu --- .../components/smartsheet/header/Menu.vue | 25 +++++++++++++++++++ .../smartsheet/toolbar/ColumnFilterMenu.vue | 9 ++++++- .../smartsheet/toolbar/GroupByMenu.vue | 6 +++++ packages/nc-gui/lib/enums.ts | 2 ++ 4 files changed, 41 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/header/Menu.vue b/packages/nc-gui/components/smartsheet/header/Menu.vue index 7851d46018..3328ff7fe0 100644 --- a/packages/nc-gui/components/smartsheet/header/Menu.vue +++ b/packages/nc-gui/components/smartsheet/header/Menu.vue @@ -295,6 +295,11 @@ const isDeleteAllowed = computed(() => { const isDuplicateAllowed = computed(() => { return column?.value && !column.value.system }) + +const filterOrGroupByThisField = (event: SmartsheetStoreEvents) => { + eventBus.emit(event) + isOpen.value = false +}