Browse Source

refactor(nc-gui): change to multiple selection

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
fc1e07da39
  1. 5
      packages/nc-gui/components/webhook/Editor.vue

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

@ -41,13 +41,13 @@ const meta = inject(MetaInj, ref())
const useForm = Form.useForm
const hook = reactive<
Omit<HookType, 'notification'> & { notification: Record<string, any>; eventOperation: string; condition: boolean }
Omit<HookType, 'notification'> & { notification: Record<string, any>; eventOperation?: string; condition: boolean }
>({
id: '',
title: '',
event: undefined,
operation: undefined,
eventOperation: '',
eventOperation: undefined,
notification: {
type: 'URL',
payload: {
@ -496,6 +496,7 @@ onMounted(async () => {
<a-form-item v-bind="validateInfos.eventOperation">
<a-select
v-model:value="hook.eventOperation"
mode="multiple"
size="large"
:placeholder="$t('general.event')"
class="nc-text-field-hook-event"

Loading…
Cancel
Save