mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Emit nodes:change for any updated config node when node deleted/added
This commit is contained in:
parent
aea5445495
commit
218d3c144b
@ -367,6 +367,7 @@ RED.nodes = (function() {
|
|||||||
} else {
|
} else {
|
||||||
var users = configNode.users;
|
var users = configNode.users;
|
||||||
users.splice(users.indexOf(node),1);
|
users.splice(users.indexOf(node),1);
|
||||||
|
RED.events.emit('nodes:change',configNode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2032,6 +2033,7 @@ RED.nodes = (function() {
|
|||||||
if (configNode) {
|
if (configNode) {
|
||||||
if (configNode.users.indexOf(n) === -1) {
|
if (configNode.users.indexOf(n) === -1) {
|
||||||
configNode.users.push(n);
|
configNode.users.push(n);
|
||||||
|
RED.events.emit('nodes:change',configNode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user