diff --git a/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue b/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue index 45c31a00bb..f209ceae45 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/OpenedViewAction.vue @@ -22,6 +22,8 @@ const { $api, $e } = useNuxtApp() const isDropdownOpen = ref(false) +const currentBaseId = computed(() => activeTable.value?.source_id) + const isPublicView = inject(IsPublicInj, ref(false)) const isLocked = inject(IsLockedInj, ref(false)) @@ -117,6 +119,13 @@ function onDuplicate() { } } +const onImportClick = (dialog: any) => { + if (isLocked.value) return + + isDropdownOpen.value = false + dialog.value = true +} + watch(isDropdownOpen, () => { setTimeout(() => { isViewIdCopied.value = false @@ -185,13 +194,8 @@ watch(isDropdownOpen, () => {
Upload Data
+ +