1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Subflow status node must pass status to parent flow

Fixes #2087
This commit is contained in:
Nick O'Leary 2019-03-13 13:13:31 +00:00
parent faae184f1c
commit c9ff05ba80
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -165,7 +165,8 @@ class Subflow extends Flow {
this.node = new Node(subflowInstanceConfig);
this.node.on("input", function(msg) { this.send(msg);});
this.node.on("close", function() { this.status({}); })
this.node.status = status => this.parent.handleStatus(this.node,status);
this.node._updateWires = this.node.updateWires;
this.node.updateWires = function(newWires) {