From 8f41c836dd4b205230b4fcf9ace71367dccdc1b6 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 10 Nov 2023 10:54:42 +0000 Subject: [PATCH 01/30] fix: Added new view context menu --- packages/nc-gui/assets/nc-icons/check.svg | 2 +- .../smartsheet/toolbar/ExportSubActions.vue | 14 +- .../smartsheet/toolbar/LockType.vue | 28 +- .../smartsheet/toolbar/OpenedViewAction.vue | 258 ++++++++++++++++++ .../smartsheet/toolbar/ViewInfo.vue | 25 +- 5 files changed, 284 insertions(+), 43 deletions(-) create mode 100644 packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue diff --git a/packages/nc-gui/assets/nc-icons/check.svg b/packages/nc-gui/assets/nc-icons/check.svg index 314287cb8e..21d49df996 100644 --- a/packages/nc-gui/assets/nc-icons/check.svg +++ b/packages/nc-gui/assets/nc-icons/check.svg @@ -1,5 +1,5 @@ - + diff --git a/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue b/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue index 1f31d21396..3537e7e51a 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue @@ -99,19 +99,21 @@ const exportFile = async (exportType: ExportTypes) => { diff --git a/packages/nc-gui/components/smartsheet/toolbar/LockType.vue b/packages/nc-gui/components/smartsheet/toolbar/LockType.vue index d2892aefae..031f3186c9 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/LockType.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/LockType.vue @@ -29,29 +29,31 @@ const selectedView = inject(ActiveViewInj) + + diff --git a/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue b/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue index 680fc370de..8ab03280c6 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ViewInfo.vue @@ -121,7 +121,7 @@ const openedBaseUrl = computed(() => { -
/
+
/
- - - - {{ activeView?.is_default ? $t('title.defaultView') : activeView?.title }} - - + From f7b32687100492b9a2895d5ca42df6dc3bd00b65 Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Fri, 10 Nov 2023 10:54:42 +0000 Subject: [PATCH 02/30] fix: View id copy button resets when dropdown is closed and small jumping on copy view id --- .../smartsheet/toolbar/OpenedViewAction.vue | 34 ++++++++++++------- 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue b/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue index f67d190ec1..36087da9e7 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue @@ -20,6 +20,8 @@ const { t } = useI18n() const { $api, $e } = useNuxtApp() +const isOpen = ref(false) + const isPublicView = inject(IsPublicInj, ref(false)) const isLocked = inject(IsLockedInj, ref(false)) @@ -112,10 +114,16 @@ function onDuplicate() { close(1000) } } + +watch(isOpen, () => { + setTimeout(() => { + isViewIdCopied.value = false + }, 250) +})