mirror of https://github.com/node-red/node-red.git
Ensure node buttons are redrawn when flow lock state is changed
parent
2ed17f0fff
commit
70771bf3d6
|
@ -728,19 +728,8 @@ RED.workspaces = (function() {
|
|||
RED.history.push(historyEvent);
|
||||
RED.events.emit("flows:change",workspace);
|
||||
RED.nodes.dirty(true);
|
||||
// RED.sidebar.config.refresh();
|
||||
// var selection = RED.view.selection();
|
||||
// if (!selection.nodes && !selection.links && workspace.id === activeWorkspace) {
|
||||
// RED.sidebar.info.refresh(workspace);
|
||||
// }
|
||||
// if (changes.hasOwnProperty('disabled')) {
|
||||
// RED.nodes.eachNode(function(n) {
|
||||
// if (n.z === workspace.id) {
|
||||
// n.dirty = true;
|
||||
// }
|
||||
// });
|
||||
// RED.view.redraw();
|
||||
// }
|
||||
RED.nodes.filterNodes({z:workspace.id}).forEach(n => n.dirty = true)
|
||||
RED.view.redraw(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue