diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue index d3e7a54a6f..8ac8605327 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue @@ -44,8 +44,6 @@ const showWebhookDrawer = ref(false) const quickImportDialog = ref(false) -const showApiSnippet = ref(false) - const { isUIAllowed } = useUIPermission() const exportFile = async (exportType: ExportTypes) => { @@ -153,7 +151,6 @@ async function changeLockType(type: LockType) { > -
+
{{ $t('activity.downloadCSV') }}
-
+
{{ $t('activity.downloadExcel') }}
- - - - - - -
- - - {{ $t('activity.uploadCSV') }} -
-
-
- +
- -
- - {{ $t('objects.webhooks') }} -
-
@@ -280,7 +267,6 @@ async function changeLockType(type: LockType) { -
diff --git a/packages/nc-gui-v2/components/smartsheet/Toolbar.vue b/packages/nc-gui-v2/components/smartsheet/Toolbar.vue index 07a55852a4..7a8f832f39 100644 --- a/packages/nc-gui-v2/components/smartsheet/Toolbar.vue +++ b/packages/nc-gui-v2/components/smartsheet/Toolbar.vue @@ -5,15 +5,22 @@ import Reload from '~/components/smartsheet/sidebar/toolbar/Reload.vue' import ToggleDrawer from '~/components/smartsheet/sidebar/toolbar/ToggleDrawer.vue' const { isGrid, isForm, isGallery } = useSmartsheetStoreOrThrow() -const { allowCSVDownload } = useSharedView() const isPublic = inject(IsPublicInj, ref(false)) +const { allowCSVDownload } = useSharedView() const { isOpen } = useSidebar()