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. 10
      packages/nc-gui/components/webhook/Editor.vue

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

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

Loading…
Cancel
Save