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.dirty(ev.dirty);
|
||||||
RED.view.redraw();
|
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
|
* @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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user