mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	show add junction when nodes are selected
This commit is contained in:
		| @@ -69,13 +69,12 @@ RED.contextMenu = (function () { | ||||
|                             }) | ||||
|                         } | ||||
|                     }, | ||||
|                     (hasSelection || hasLinks) ? { // has nodes or at least 1 wire selected | ||||
|                     (hasLinks) ? { // has least 1 wire selected | ||||
|                         label: RED._("contextMenu.junction"), | ||||
|                         onselect: 'core:split-wires-with-junctions', | ||||
|                         disabled: !hasLinks | ||||
|                     } : { | ||||
|                         label: RED._("contextMenu.junction"), | ||||
|                         disabled: !noSelection, // has 0 nodes, 0 links selected (i.e. workspace right click) | ||||
|                         onselect: function () { | ||||
|                             const nn = { | ||||
|                                 _def: { defaults: {} }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user