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

Mark all newly imported nodes as changed

This commit is contained in:
Nick O'Leary 2018-10-16 11:36:46 +01:00
parent fc8c4063f2
commit d40aa7260f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -2747,7 +2747,7 @@ RED.view = (function() {
RED.workspaces.show(new_default_workspace.id); RED.workspaces.show(new_default_workspace.id);
} }
var new_ms = new_nodes.filter(function(n) { return n.hasOwnProperty("x") && n.hasOwnProperty("y") && n.z == RED.workspaces.active() }).map(function(n) { return {n:n};}); var new_ms = new_nodes.filter(function(n) { return n.hasOwnProperty("x") && n.hasOwnProperty("y") && n.z == RED.workspaces.active() }).map(function(n) { return {n:n};});
var new_node_ids = new_nodes.map(function(n){ return n.id; }); var new_node_ids = new_nodes.map(function(n){ n.changed = true; return n.id; });
// TODO: pick a more sensible root node // TODO: pick a more sensible root node
if (new_ms.length > 0) { if (new_ms.length > 0) {