fix(Slack Node): Restore ability to send text in addition of blocks or attachments

This commit is contained in:
Michael Kret
2023-04-28 13:23:36 +03:00
committed by GitHub
parent b17d5f9aa0
commit 8669f95736
2 changed files with 37 additions and 12 deletions

View File

@@ -331,6 +331,21 @@ export const messageFields: INodeProperties[] = [
hint: "To create blocks, use <a target='_blank' href='https://app.slack.com/block-kit-builder'>Slack's Block Kit Builder</a>",
default: '',
},
{
displayName: 'Notification Text',
name: 'text',
type: 'string',
default: '',
displayOptions: {
show: {
operation: ['post'],
resource: ['message'],
messageType: ['block'],
},
},
description:
'Fallback text to display in slack notifications. Supports <a href="https://api.slack.com/reference/surfaces/formatting">markdown</a> by default - this can be disabled in "Options".',
},
{
displayName: 'This is a legacy Slack feature. Slack advises to instead use Blocks.',
name: 'noticeAttachments',