mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
let subflow add node-red context to status
For all those nodes thaht don't specify it. So that subflow status then works ok
This commit is contained in:
parent
2aef99c440
commit
2f4dcba54d
@ -200,6 +200,9 @@ class Subflow extends Flow {
|
||||
self.node.status({text:text});
|
||||
} else if (msg.status !== undefined) {
|
||||
// if msg.status exists
|
||||
if (msg.status.hasOwnProperty("text") && msg.status.text.indexOf("common.") === 0) {
|
||||
msg.status.text = "node-red:"+msg.status.text;
|
||||
}
|
||||
self.node.status(msg.status)
|
||||
}
|
||||
})
|
||||
@ -310,7 +313,6 @@ class Subflow extends Flow {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
super.start(diff);
|
||||
}
|
||||
|
||||
@ -435,7 +437,6 @@ class Subflow extends Flow {
|
||||
}
|
||||
return handled;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user