mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
⚡ Make it possible to display notes in flow
This commit is contained in:
@@ -129,6 +129,10 @@ export default mixins(nodeBase, workflowHelpers).extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
nodeSubtitle (): string | undefined {
|
nodeSubtitle (): string | undefined {
|
||||||
|
if (this.data.notesInFlow) {
|
||||||
|
return this.data.notes;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.nodeType !== null && this.nodeType.subtitle !== undefined) {
|
if (this.nodeType !== null && this.nodeType.subtitle !== undefined) {
|
||||||
return this.workflow.getSimpleParameterValue(this.data as INode, this.nodeType.subtitle) as string | undefined;
|
return this.workflow.getSimpleParameterValue(this.data as INode, this.nodeType.subtitle) as string | undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ export default mixins(
|
|||||||
nodeValues: {
|
nodeValues: {
|
||||||
color: '#ff0000',
|
color: '#ff0000',
|
||||||
alwaysOutputData: false,
|
alwaysOutputData: false,
|
||||||
|
notesInFlow: false,
|
||||||
continueOnFail: false,
|
continueOnFail: false,
|
||||||
retryOnFail: false,
|
retryOnFail: false,
|
||||||
maxTries: 3,
|
maxTries: 3,
|
||||||
@@ -162,6 +163,14 @@ export default mixins(
|
|||||||
noDataExpression: true,
|
noDataExpression: true,
|
||||||
description: 'Notes to save with the node.',
|
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',
|
displayName: 'Node Color',
|
||||||
name: 'color',
|
name: 'color',
|
||||||
@@ -438,6 +447,11 @@ export default mixins(
|
|||||||
Vue.set(this.nodeValues, 'continueOnFail', this.node.continueOnFail);
|
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) {
|
if (this.node.retryOnFail) {
|
||||||
foundNodeSettings.push('retryOnFail');
|
foundNodeSettings.push('retryOnFail');
|
||||||
Vue.set(this.nodeValues, 'retryOnFail', this.node.retryOnFail);
|
Vue.set(this.nodeValues, 'retryOnFail', this.node.retryOnFail);
|
||||||
|
|||||||
@@ -289,6 +289,7 @@ export interface INode {
|
|||||||
type: string;
|
type: string;
|
||||||
position: [number, number];
|
position: [number, number];
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
notesInFlow?: boolean;
|
||||||
retryOnFail?: boolean;
|
retryOnFail?: boolean;
|
||||||
maxTries?: number;
|
maxTries?: number;
|
||||||
waitBetweenTries?: number;
|
waitBetweenTries?: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user