status node extended

This commit is contained in:
NetHans
2022-08-14 20:24:05 +02:00
parent d7a10328c0
commit 08ce6cce97
4 changed files with 14 additions and 1 deletions

View File

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