Browse Source

Merge pull request #5261 from nocodb/fix/webhook-bugs

fix: Missing slack channel list in webhook
pull/5252/head
Raju Udava 2 years ago committed by GitHub
parent
commit
dbeecf734b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/webhook/Editor.vue
  2. 2
      packages/nocodb-sdk/src/lib/Api.ts
  3. 7
      packages/nocodb/src/schema/swagger.json

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

@ -225,7 +225,7 @@ function onNotTypeChange(reset = false) {
} }
if (hook.notification.type === 'Slack') { if (hook.notification.type === 'Slack') {
slackChannels.value = (apps.value && apps.value.Slack && apps.Slack.parsedInput) || [] slackChannels.value = (apps.value && apps.value.Slack && apps.value.Slack.parsedInput) || []
} }
if (hook.notification.type === 'Microsoft Teams') { if (hook.notification.type === 'Microsoft Teams') {

2
packages/nocodb-sdk/src/lib/Api.ts

@ -1716,7 +1716,7 @@ export interface PluginReqType {
export interface PluginTestReqType { export interface PluginTestReqType {
/** Plugin Title */ /** Plugin Title */
title: string; title: string;
/** Plugin Input */ /** Plugin Input as JSON string */
input: string; input: string;
} }

7
packages/nocodb/src/schema/swagger.json

@ -12728,9 +12728,16 @@
"description": "Plugin Title" "description": "Plugin Title"
}, },
"input": { "input": {
"oneOf": [
{
"type": "string", "type": "string",
"description": "Plugin Input as JSON string"
},
{
"description": "Plugin Input" "description": "Plugin Input"
} }
]
}
}, },
"required": ["title", "input"] "required": ["title", "input"]
}, },

Loading…
Cancel
Save