From e1550e5e3dc12e0e456cf30b8dc39f34d0494e8b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 12 Aug 2022 15:47:26 +0800 Subject: [PATCH] fix(gui-v2): add isUIAllowed in right nav bar --- .../smartsheet/sidebar/MenuBottom.vue | 98 +++++++++++-------- .../components/smartsheet/sidebar/index.vue | 4 +- 2 files changed, 58 insertions(+), 44 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue index 4161776e6d..e23b8f3b4b 100644 --- a/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue +++ b/packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue @@ -11,7 +11,10 @@ const emits = defineEmits() const { $e } = useNuxtApp() +const { isUIAllowed } = useUIPermission() + const isView = ref(false) + let showApiSnippet = $ref(false) const showWebhookDrawer = ref(false) @@ -33,67 +36,76 @@ function onOpenModal(type: ViewTypes, title = '') {