Make it possible to display notes in flow

This commit is contained in:
Jan Oberhauser
2020-05-05 17:34:12 +02:00
parent adff086ea2
commit 3d330a94d3
3 changed files with 19 additions and 0 deletions

View File

@@ -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;
}