Browse Source

fix(nc-gui): set payload body for channels

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

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

@ -240,6 +240,7 @@ function onNotificationTypeChange(reset = false) {
hook.notification.payload = {} as Record<string, any>
if (['Slack', 'Microsoft Teams', 'Discord', 'Mattermost'].includes(hook.notification.type)) {
hook.notification.payload.channels = []
hook.notification.payload.body = ''
}
}
@ -628,6 +629,7 @@ onMounted(async () => {
<a-row v-if="hook.notification.type === 'Slack'" type="flex">
<a-col :span="24">
<a-form-item v-bind="validateInfos['notification.payload.channels']">
{{ hook }}
<LazyWebhookChannelMultiSelect
v-model="hook.notification.payload.channels"
:selected-channel-list="hook.notification.payload.channels"

Loading…
Cancel
Save