From 5fdd9c0546703ec4783f6feb9d2c965b64b7968b Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 8 Nov 2021 20:38:34 +0000 Subject: [PATCH] Only toggle disabled workspace flag if on activeWorkspace Fixes #3244 --- .../@node-red/editor-client/src/js/ui/workspaces.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e73544f06..e76b60004 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 @@ -450,7 +450,7 @@ RED.workspaces = (function() { var changes = { disabled: workspace.disabled }; workspace.disabled = disabled; $("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!workspace.disabled); - if (id || activeWorkspace) { + if (!id || (id === activeWorkspace)) { $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!workspace.disabled); } var historyEvent = {