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

Merge pull request #4091 from node-red/enable-unlocked-buttons

Ensure node buttons are redrawn when flow lock state is changed
This commit is contained in:
Nick O'Leary 2023-03-03 13:33:08 +00:00 committed by GitHub
commit 0ceca8fc17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -728,19 +728,8 @@ RED.workspaces = (function() {
RED.history.push(historyEvent); RED.history.push(historyEvent);
RED.events.emit("flows:change",workspace); RED.events.emit("flows:change",workspace);
RED.nodes.dirty(true); RED.nodes.dirty(true);
// RED.sidebar.config.refresh(); RED.nodes.filterNodes({z:workspace.id}).forEach(n => n.dirty = true)
// var selection = RED.view.selection(); RED.view.redraw(true);
// 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();
// }
} }
} }