diff --git a/packages/editor-ui/src/components/Node.vue b/packages/editor-ui/src/components/Node.vue index 15f83a2124..13c2fee629 100644 --- a/packages/editor-ui/src/components/Node.vue +++ b/packages/editor-ui/src/components/Node.vue @@ -129,6 +129,10 @@ export default mixins(nodeBase, workflowHelpers).extend({ } }, nodeSubtitle (): string | undefined { + if (this.data.notesInFlow) { + return this.data.notes; + } + if (this.nodeType !== null && this.nodeType.subtitle !== undefined) { return this.workflow.getSimpleParameterValue(this.data as INode, this.nodeType.subtitle) as string | undefined; } diff --git a/packages/editor-ui/src/components/NodeSettings.vue b/packages/editor-ui/src/components/NodeSettings.vue index 515eeccce5..bff37056f6 100644 --- a/packages/editor-ui/src/components/NodeSettings.vue +++ b/packages/editor-ui/src/components/NodeSettings.vue @@ -142,6 +142,7 @@ export default mixins( nodeValues: { color: '#ff0000', alwaysOutputData: false, + notesInFlow: false, continueOnFail: false, retryOnFail: false, maxTries: 3, @@ -162,6 +163,14 @@ export default mixins( noDataExpression: true, description: 'Notes to save with the node.', }, + { + displayName: 'Notes In Flow', + name: 'notesInFlow', + type: 'boolean', + default: false, + noDataExpression: true, + description: 'If activated it will display the above notes in the flow as subtitle.', + }, { displayName: 'Node Color', name: 'color', @@ -438,6 +447,11 @@ export default mixins( Vue.set(this.nodeValues, 'continueOnFail', this.node.continueOnFail); } + if (this.node.notesInFlow) { + foundNodeSettings.push('notesInFlow'); + Vue.set(this.nodeValues, 'notesInFlow', this.node.notesInFlow); + } + if (this.node.retryOnFail) { foundNodeSettings.push('retryOnFail'); Vue.set(this.nodeValues, 'retryOnFail', this.node.retryOnFail); diff --git a/packages/workflow/src/Interfaces.ts b/packages/workflow/src/Interfaces.ts index 6a1500e0d7..9caa541a76 100644 --- a/packages/workflow/src/Interfaces.ts +++ b/packages/workflow/src/Interfaces.ts @@ -289,6 +289,7 @@ export interface INode { type: string; position: [number, number]; disabled?: boolean; + notesInFlow?: boolean; retryOnFail?: boolean; maxTries?: number; waitBetweenTries?: number;