Browse Source

fix(gui-v2): add missing webhook drawer

pull/3051/head
Wing-Kam Wong 2 years ago
parent
commit
fffb36a388
  1. 10
      packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue

10
packages/nc-gui-v2/components/smartsheet/sidebar/MenuBottom.vue

@ -18,11 +18,17 @@ const { $e } = useNuxtApp()
const isView = ref(false) const isView = ref(false)
const showWebhookDrawer = ref(false)
function onApiSnippet() { function onApiSnippet() {
// get API snippet // get API snippet
$e('a:view:api-snippet') $e('a:view:api-snippet')
} }
function onWebhooks() {
showWebhookDrawer.value = true
}
function onOpenModal(type: ViewTypes, title = '') { function onOpenModal(type: ViewTypes, title = '') {
emits('openModal', { type, title }) emits('openModal', { type, title })
} }
@ -104,7 +110,7 @@ function onOpenModal(type: ViewTypes, title = '') {
<button <button
class="flex items-center gap-2 w-full mx-3 px-4 py-3 rounded border transform translate-x-4 hover:(translate-x-0 shadow-lg) transition duration-150 ease" class="flex items-center gap-2 w-full mx-3 px-4 py-3 rounded border transform translate-x-4 hover:(translate-x-0 shadow-lg) transition duration-150 ease"
@click="onApiSnippet" @click="onWebhooks"
> >
<MdiHook />{{ $t('objects.webhooks') }} <MdiHook />{{ $t('objects.webhooks') }}
</button> </button>
@ -142,5 +148,7 @@ function onOpenModal(type: ViewTypes, title = '') {
</a> </a>
</template> </template>
</general-flipping-card> </general-flipping-card>
<WebhookDrawer v-if="showWebhookDrawer" v-model="showWebhookDrawer" />
</a-menu> </a-menu>
</template> </template>

Loading…
Cancel
Save