mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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,7 +166,9 @@ 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:
|
||||||
|
categoryItem.action ??
|
||||||
|
i18n.baseText('nodeCreator.actionsCategory.onEvent', {
|
||||||
interpolate: { event: startCase(categoryItem.name) },
|
interpolate: { event: startCase(categoryItem.name) },
|
||||||
}),
|
}),
|
||||||
description: categoryItem.description || '',
|
description: categoryItem.description || '',
|
||||||
|
|
|
@ -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',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue