mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Ensure tab state updates properly when toggling enable state
This commit is contained in:
		| @@ -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 = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user