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

Merge branch 'master' into dev

This commit is contained in:
Nick O'Leary 2021-07-02 10:01:07 +01:00
commit 66dd05f8bc
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -370,6 +370,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)
} }
} }
} }
@ -2073,6 +2074,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)
} }
} }
} }