mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
status node extended
This commit is contained in:
@@ -665,10 +665,16 @@ class Flow {
|
||||
}
|
||||
handled = true;
|
||||
} else {
|
||||
const flow = this;
|
||||
this.statusNodes.forEach(function(targetStatusNode) {
|
||||
if (targetStatusNode.scope && targetStatusNode.scope.indexOf(reportingNode.id) === -1) {
|
||||
if (Array.isArray(targetStatusNode.scope) && targetStatusNode.scope.indexOf(reportingNode.id) === -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (targetStatusNode.scope === "group" && flow.isNodeInSameGroup(targetStatusNode, reportingNode) === false){
|
||||
return;
|
||||
}
|
||||
|
||||
var message = {
|
||||
status: clone(statusMessage)
|
||||
}
|
||||
|
Reference in New Issue
Block a user