From eef5a2110d9e06559380378385a790026bb9bcee Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 26 Jul 2022 20:08:36 +0800 Subject: [PATCH] fix(gui-v2): validators --- packages/nc-gui-v2/components/webhook/Editor.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui-v2/components/webhook/Editor.vue b/packages/nc-gui-v2/components/webhook/Editor.vue index b50b426c51..5ed73d8643 100644 --- a/packages/nc-gui-v2/components/webhook/Editor.vue +++ b/packages/nc-gui-v2/components/webhook/Editor.vue @@ -54,7 +54,12 @@ const methodList = ref([ ]) const validators = computed(() => { - return {} + return { + 'title': [], + 'event': [], + 'notification.type': [], + 'method': [], + } }) const { resetFields, validate, validateInfos } = useForm(formState, validators) @@ -98,7 +103,7 @@ onMounted(() => { - + {{ notification.type