fix(editor): Fix duplicate chat trigger (#11693)

This commit is contained in:
Eugene 2024-11-12 13:45:18 +01:00 committed by GitHub
parent 88295c7049
commit a025848ec4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View file

@ -6,7 +6,7 @@ import {
EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE, EXECUTE_WORKFLOW_TRIGGER_NODE_TYPE,
FORM_TRIGGER_NODE_TYPE, FORM_TRIGGER_NODE_TYPE,
MANUAL_TRIGGER_NODE_TYPE, MANUAL_TRIGGER_NODE_TYPE,
MANUAL_CHAT_TRIGGER_NODE_TYPE, CHAT_TRIGGER_NODE_TYPE,
SCHEDULE_TRIGGER_NODE_TYPE, SCHEDULE_TRIGGER_NODE_TYPE,
REGULAR_NODE_CREATOR_VIEW, REGULAR_NODE_CREATOR_VIEW,
TRANSFORM_DATA_SUBCATEGORY, TRANSFORM_DATA_SUBCATEGORY,
@ -405,14 +405,14 @@ export function TriggerView() {
}, },
}, },
{ {
key: MANUAL_CHAT_TRIGGER_NODE_TYPE, key: CHAT_TRIGGER_NODE_TYPE,
type: 'node', type: 'node',
category: [CORE_NODES_CATEGORY], category: [CORE_NODES_CATEGORY],
properties: { properties: {
group: [], group: [],
name: MANUAL_CHAT_TRIGGER_NODE_TYPE, name: CHAT_TRIGGER_NODE_TYPE,
displayName: i18n.baseText('nodeCreator.triggerHelperPanel.manualChatTriggerDisplayName'), displayName: i18n.baseText('nodeCreator.triggerHelperPanel.chatTriggerDisplayName'),
description: i18n.baseText('nodeCreator.triggerHelperPanel.manualChatTriggerDescription'), description: i18n.baseText('nodeCreator.triggerHelperPanel.chatTriggerDescription'),
icon: 'fa:comments', icon: 'fa:comments',
}, },
}, },

View file

@ -1118,6 +1118,8 @@
"nodeCreator.triggerHelperPanel.manualChatTriggerDisplayName": "On chat message", "nodeCreator.triggerHelperPanel.manualChatTriggerDisplayName": "On chat message",
"nodeCreator.triggerHelperPanel.manualChatTriggerDescription": "Runs the flow when a user sends a chat message. For use with AI nodes", "nodeCreator.triggerHelperPanel.manualChatTriggerDescription": "Runs the flow when a user sends a chat message. For use with AI nodes",
"nodeCreator.triggerHelperPanel.manualTriggerTag": "Recommended", "nodeCreator.triggerHelperPanel.manualTriggerTag": "Recommended",
"nodeCreator.triggerHelperPanel.chatTriggerDisplayName": "On chat message",
"nodeCreator.triggerHelperPanel.chatTriggerDescription": "Runs the flow when a user sends a chat message. For use with AI nodes",
"nodeCreator.triggerHelperPanel.whatHappensNext": "What happens next?", "nodeCreator.triggerHelperPanel.whatHappensNext": "What happens next?",
"nodeCreator.triggerHelperPanel.selectATrigger": "What triggers this workflow?", "nodeCreator.triggerHelperPanel.selectATrigger": "What triggers this workflow?",
"nodeCreator.triggerHelperPanel.selectATriggerDescription": "A trigger is a step that starts your workflow", "nodeCreator.triggerHelperPanel.selectATriggerDescription": "A trigger is a step that starts your workflow",