mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure tab state updates properly when toggling enable state
This commit is contained in:
parent
cdfeba0b82
commit
edb8a120bd
@ -1755,8 +1755,12 @@ RED.editor = (function() {
|
||||
editState.changes.disabled = workspace.disabled;
|
||||
editState.changed = true;
|
||||
workspace.disabled = disabled;
|
||||
}
|
||||
|
||||
$("#red-ui-tab-"+(workspace.id.replace(".","-"))).toggleClass('red-ui-workspace-disabled',!!workspace.disabled);
|
||||
if (workspace.id === RED.workspaces.active()) {
|
||||
$("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!workspace.disabled);
|
||||
}
|
||||
}
|
||||
|
||||
if (editState.changed) {
|
||||
var historyEvent = {
|
||||
|
@ -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 || activeWorkspace) {
|
||||
$("#red-ui-workspace").toggleClass("red-ui-workspace-disabled",!!workspace.disabled);
|
||||
}
|
||||
var historyEvent = {
|
||||
|
Loading…
Reference in New Issue
Block a user