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 useForm = Form.useForm
const hook = reactive< 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: '', id: '',
title: '', title: '',
event: undefined, event: undefined,
operation: undefined, operation: undefined,
eventOperation: '', eventOperation: undefined,
notification: { notification: {
type: 'URL', type: 'URL',
payload: { payload: {
@ -496,6 +496,7 @@ onMounted(async () => {
<a-form-item v-bind="validateInfos.eventOperation"> <a-form-item v-bind="validateInfos.eventOperation">
<a-select <a-select
v-model:value="hook.eventOperation" v-model:value="hook.eventOperation"
mode="multiple"
size="large" size="large"
:placeholder="$t('general.event')" :placeholder="$t('general.event')"
class="nc-text-field-hook-event" class="nc-text-field-hook-event"

Loading…
Cancel
Save