mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Allow node edit dialog to be opened on a non-default tab
This commit is contained in:
		| @@ -1086,7 +1086,7 @@ RED.editor = (function() { | ||||
|         return nodeInfoEditor; | ||||
|     } | ||||
|  | ||||
|     function showEditDialog(node) { | ||||
|     function showEditDialog(node, defaultTab) { | ||||
|         var editing_node = node; | ||||
|         var isDefaultIcon; | ||||
|         var defaultIcon; | ||||
| @@ -1604,6 +1604,9 @@ RED.editor = (function() { | ||||
|                 prepareEditDialog(node,node._def,"node-input", function() { | ||||
|                     trayBody.i18n(); | ||||
|                     finishedBuilding = true; | ||||
|                     if (defaultTab) { | ||||
|                         editorTabs.activateTab(defaultTab); | ||||
|                     } | ||||
|                     done(); | ||||
|                 }); | ||||
|             }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user