From 70771bf3d65d4d4acbf06609618d0319bbb02d8d Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 3 Mar 2023 13:21:23 +0000 Subject: [PATCH] Ensure node buttons are redrawn when flow lock state is changed --- .../editor-client/src/js/ui/workspaces.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js b/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js index 90c698c03..1a71577ce 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/workspaces.js @@ -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); } }