mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure recoverd nodes tab is added to outliner properly
This commit is contained in:
parent
7bd0ca2212
commit
dc8991a1da
@ -971,10 +971,15 @@ RED.nodes = (function() {
|
|||||||
// Hit the rare issue where node z values get set to 0.
|
// Hit the rare issue where node z values get set to 0.
|
||||||
// Repair the flow - but we really need to track that down.
|
// Repair the flow - but we really need to track that down.
|
||||||
if (!recoveryWorkspace) {
|
if (!recoveryWorkspace) {
|
||||||
recoveryWorkspace = RED.workspaces.add(null,true);
|
recoveryWorkspace = {
|
||||||
recoveryWorkspace.label = RED._("clipboard.recoveredNodes");
|
id: RED.nodes.id(),
|
||||||
recoveryWorkspace.info = RED._("clipboard.recoveredNodesInfo");
|
type: "tab",
|
||||||
|
disabled: false,
|
||||||
|
label: RED._("clipboard.recoveredNodes"),
|
||||||
|
info: RED._("clipboard.recoveredNodesInfo")
|
||||||
|
}
|
||||||
|
addWorkspace(recoveryWorkspace);
|
||||||
|
RED.workspaces.add(recoveryWorkspace);
|
||||||
nodeZmap[recoveryWorkspace.id] = [];
|
nodeZmap[recoveryWorkspace.id] = [];
|
||||||
}
|
}
|
||||||
n.z = recoveryWorkspace.id;
|
n.z = recoveryWorkspace.id;
|
||||||
|
Loading…
Reference in New Issue
Block a user