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

Only update disabled workspace css if it is the active ws

This commit is contained in:
Nick O'Leary 2020-04-27 11:03:02 +01:00
parent 2069cc4392
commit d9f710aa52
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -372,7 +372,9 @@ RED.workspaces = (function() {
var changes = { disabled: workspace.disabled }; var changes = { disabled: workspace.disabled };
workspace.disabled = disabled; workspace.disabled = disabled;
$("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!workspace.disabled); $("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!workspace.disabled);
if (id === activeWorkspace) {
$("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!workspace.disabled); $("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!workspace.disabled);
}
var historyEvent = { var historyEvent = {
t: "edit", t: "edit",
changes:changes, changes:changes,