diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue index e7d55f6be3..555debaf6f 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ViewActions.vue @@ -44,6 +44,8 @@ const showWebhookDrawer = ref(false) const quickImportDialog = ref(false) +const showApiSnippet = ref(false) + const { isUIAllowed } = useUIPermission() const exportFile = async (exportType: ExportTypes) => { @@ -151,7 +153,6 @@ async function changeLockType(type: LockType) { > diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue index ffe9b72f44..8a56600a37 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue @@ -9,33 +9,19 @@ interface Emits { const emits = defineEmits() -const { $e } = useNuxtApp() - const { isUIAllowed } = useUIPermission() const isView = ref(false) -let showApiSnippet = $ref(false) - const showWebhookDrawer = ref(false) -function onApiSnippet() { - // get API snippet - showApiSnippet = true - $e('a:view:api-snippet') -} - -function onWebhooks() { - showWebhookDrawer.value = true -} - function onOpenModal(type: ViewTypes, title = '') { emits('openModal', { type, title }) }