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

Undo subflow rename not reflected in palette

This commit is contained in:
Nick O'Leary 2015-03-11 23:37:44 +00:00
parent 3967e23828
commit e26ea14104
2 changed files with 10 additions and 7 deletions

View File

@ -193,6 +193,7 @@ RED.history = (function() {
} }
RED.view.dirty(ev.dirty); RED.view.dirty(ev.dirty);
RED.view.redraw(); RED.view.redraw();
RED.palette.refresh();
} }
} }
} }

View File

@ -28,13 +28,15 @@ RED.editor = (function() {
* @returns {boolean} whether the node is valid. Sets node.dirty if needed * @returns {boolean} whether the node is valid. Sets node.dirty if needed
*/ */
function validateNode(node) { function validateNode(node) {
var oldValue = node.valid; if (node._def) {
node.valid = validateNodeProperties(node, node._def.defaults, node); var oldValue = node.valid;
if (node._def._creds) { node.valid = validateNodeProperties(node, node._def.defaults, node);
node.valid = node.valid && validateNodeProperties(node, node._def.credentials, node._def._creds); if (node._def._creds) {
} node.valid = node.valid && validateNodeProperties(node, node._def.credentials, node._def._creds);
if (oldValue != node.valid) { }
node.dirty = true; if (oldValue != node.valid) {
node.dirty = true;
}
} }
} }