Browse Source

feat(nc-gui): show bulk operation for v2 hooks only

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

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

@ -179,9 +179,13 @@ const eventList = [
{ text: ['After', 'Insert'], value: ['after', 'insert'] }, { text: ['After', 'Insert'], value: ['after', 'insert'] },
{ text: ['After', 'Update'], value: ['after', 'update'] }, { text: ['After', 'Update'], value: ['after', 'update'] },
{ text: ['After', 'Delete'], value: ['after', 'delete'] }, { text: ['After', 'Delete'], value: ['after', 'delete'] },
...(hook.version === 'v2'
? [
{ text: ['After', 'Bulk Insert'], value: ['after', 'bulkInsert'] }, { text: ['After', 'Bulk Insert'], value: ['after', 'bulkInsert'] },
{ text: ['After', 'Bulk Update'], value: ['after', 'bulkUpdate'] }, { text: ['After', 'Bulk Update'], value: ['after', 'bulkUpdate'] },
{ text: ['After', 'Bulk Delete'], value: ['after', 'bulkDelete'] }, { text: ['After', 'Bulk Delete'], value: ['after', 'bulkDelete'] },
]
: []),
] ]
const notificationList = computed(() => { const notificationList = computed(() => {

Loading…
Cancel
Save