Browse Source

feat(gui-v2): define expose hook & onEventChange

pull/2838/head
Wing-Kam Wong 2 years ago
parent
commit
1c1592be5e
  1. 9
      packages/nc-gui-v2/components/webhook/Editor.vue

9
packages/nc-gui-v2/components/webhook/Editor.vue

@ -260,6 +260,10 @@ function filterOption(input: string, option: Option) {
return option.value.toUpperCase().includes(input.toUpperCase()) return option.value.toUpperCase().includes(input.toUpperCase())
} }
async function onEventChange() {
// TODO
}
async function loadPluginList() { async function loadPluginList() {
try { try {
const plugins = (await $api.plugin.list()).list as any const plugins = (await $api.plugin.list()).list as any
@ -332,6 +336,11 @@ async function testWebhook() {
await webhookTestRef.value.testWebhook() await webhookTestRef.value.testWebhook()
} }
defineExpose({
hook,
onEventChange,
})
onMounted(() => { onMounted(() => {
loadPluginList() loadPluginList()
}) })

Loading…
Cancel
Save