refactor(TelegramTrigger Node, ShopifyTrigger Node): Standardize node triggers actions (#5117)

* feat(Telegram Trigger node, Shopify Trigger node): Change display name of Telegram and Shopify trigger nodes

* Remove trigger on tooltips for Telegram and Shopify trigger nodes

* Add telegram action override and make sure recommended category actions are overwritable
This commit is contained in:
OlegIvaniv 2023-01-10 11:20:53 +01:00 committed by GitHub
parent ab4785ab31
commit 885177861a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -166,9 +166,11 @@ function recommendedCategory(
i18n.baseText('nodeCreator.actionsCategory.recommended'), i18n.baseText('nodeCreator.actionsCategory.recommended'),
), ),
actionKey: categoryItem.value as string, actionKey: categoryItem.value as string,
displayName: i18n.baseText('nodeCreator.actionsCategory.onEvent', { displayName:
interpolate: { event: startCase(categoryItem.name) }, categoryItem.action ??
}), i18n.baseText('nodeCreator.actionsCategory.onEvent', {
interpolate: { event: startCase(categoryItem.name) },
}),
description: categoryItem.description || '', description: categoryItem.description || '',
displayOptions: matchedProperty.displayOptions, displayOptions: matchedProperty.displayOptions,
values: { values: {

View file

@ -79,7 +79,7 @@ export class ShopifyTrigger implements INodeType {
default: 'apiKey', default: 'apiKey',
}, },
{ {
displayName: 'Topic', displayName: 'Trigger On',
name: 'topic', name: 'topic',
type: 'options', type: 'options',
default: '', default: '',
@ -321,7 +321,6 @@ export class ShopifyTrigger implements INodeType {
value: 'themes/update', value: 'themes/update',
}, },
], ],
description: 'Event that triggers the webhook',
}, },
], ],
}; };

View file

@ -36,7 +36,7 @@ export class TelegramTrigger implements INodeType {
], ],
properties: [ properties: [
{ {
displayName: 'Updates', displayName: 'Trigger On',
name: 'updates', name: 'updates',
type: 'multiOptions', type: 'multiOptions',
options: [ options: [
@ -81,6 +81,7 @@ export class TelegramTrigger implements INodeType {
{ {
name: 'Poll', name: 'Poll',
value: 'poll', value: 'poll',
action: 'On Poll Change',
description: description:
'Trigger on new poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot.', 'Trigger on new poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot.',
}, },
@ -99,7 +100,6 @@ export class TelegramTrigger implements INodeType {
], ],
required: true, required: true,
default: [], default: [],
description: 'The update types to listen to',
}, },
{ {
displayName: displayName: