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:
parent
3967e23828
commit
e26ea14104
@ -193,6 +193,7 @@ RED.history = (function() {
|
||||
}
|
||||
RED.view.dirty(ev.dirty);
|
||||
RED.view.redraw();
|
||||
RED.palette.refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,13 +28,15 @@ RED.editor = (function() {
|
||||
* @returns {boolean} whether the node is valid. Sets node.dirty if needed
|
||||
*/
|
||||
function validateNode(node) {
|
||||
var oldValue = node.valid;
|
||||
node.valid = validateNodeProperties(node, node._def.defaults, node);
|
||||
if (node._def._creds) {
|
||||
node.valid = node.valid && validateNodeProperties(node, node._def.credentials, node._def._creds);
|
||||
}
|
||||
if (oldValue != node.valid) {
|
||||
node.dirty = true;
|
||||
if (node._def) {
|
||||
var oldValue = node.valid;
|
||||
node.valid = validateNodeProperties(node, node._def.defaults, node);
|
||||
if (node._def._creds) {
|
||||
node.valid = node.valid && validateNodeProperties(node, node._def.credentials, node._def._creds);
|
||||
}
|
||||
if (oldValue != node.valid) {
|
||||
node.dirty = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user