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. 11
      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') {
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') {

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

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

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

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

Loading…
Cancel
Save