Update info sidebar on node edit

Fixes #168

Moves info sidebar to its own file so it can be refreshed from other parts of the UI
This commit is contained in:
Nick O'Leary
2014-02-26 22:58:44 +00:00
parent fb5b45c655
commit 325600ea61
7 changed files with 78 additions and 53 deletions

View File

@@ -39,7 +39,7 @@ RED.nodes = function() {
function addNode(n) {
if (n._def.category == "config") {
configNodes[n.id] = n;
RED.configTab.refresh();
RED.sidebar.config.refresh();
} else {
n.dirty = true;
nodes.push(n);
@@ -58,7 +58,7 @@ RED.nodes = function() {
}
}
if (updatedConfigNode) {
RED.configTab.refresh();
RED.sidebar.config.refresh();
}
}
}