Browse Source

feat(nc-gui): add enable webhook

pull/5317/head
Wing-Kam Wong 2 years ago
parent
commit
d562e7fa6b
  1. 16
      packages/nc-gui/components/webhook/Editor.vue

16
packages/nc-gui/components/webhook/Editor.vue

@ -55,6 +55,7 @@ const hook = reactive<Record<string, any>>({
},
},
condition: false,
active: true,
})
const urlTabKey = ref('body')
@ -458,6 +459,21 @@ onMounted(async () => {
<a-divider />
<a-form :model="hook" name="create-or-edit-webhook">
<a-form-item>
<a-row type="flex">
<a-col :span="24">
<a-card>
<a-checkbox
:checked="Boolean(hook.active)"
class="nc-check-box-enable-webhook"
@update:checked="hook.active = $event"
>
Enable Webhook
</a-checkbox>
</a-card>
</a-col>
</a-row>
</a-form-item>
<a-form-item>
<a-row type="flex">
<a-col :span="24">

Loading…
Cancel
Save