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:
parent
fc8c4063f2
commit
d40aa7260f
@ -2747,7 +2747,7 @@ RED.view = (function() {
|
||||
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_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
|
||||
if (new_ms.length > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user