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'),
),
actionKey: categoryItem.value as string,
displayName: i18n.baseText('nodeCreator.actionsCategory.onEvent', {
interpolate: { event: startCase(categoryItem.name) },
}),
displayName:
categoryItem.action ??
i18n.baseText('nodeCreator.actionsCategory.onEvent', {
interpolate: { event: startCase(categoryItem.name) },
}),
description: categoryItem.description || '',
displayOptions: matchedProperty.displayOptions,
values: {

View file

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

View file

@ -36,7 +36,7 @@ export class TelegramTrigger implements INodeType {
],
properties: [
{
displayName: 'Updates',
displayName: 'Trigger On',
name: 'updates',
type: 'multiOptions',
options: [
@ -81,6 +81,7 @@ export class TelegramTrigger implements INodeType {
{
name: 'Poll',
value: 'poll',
action: 'On Poll Change',
description:
'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,
default: [],
description: 'The update types to listen to',
},
{
displayName: