mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
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:
parent
ab4785ab31
commit
885177861a
|
@ -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: {
|
||||
|
|
|
@ -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',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue