mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Use paletteLabel if set in help sidebar
This commit is contained in:
		| @@ -233,7 +233,7 @@ RED.sidebar.help = (function() { | ||||
|         var div = $('<div>',{class:"red-ui-info-outline-item"}); | ||||
|         RED.utils.createNodeIcon(n).appendTo(div); | ||||
|         var contentDiv = $('<div>',{class:"red-ui-search-result-description"}).appendTo(div); | ||||
|         $('<div>',{class:"red-ui-search-result-node-label red-ui-info-outline-item-label"}).text(n.name||n.type).appendTo(contentDiv); | ||||
|         $('<div>',{class:"red-ui-search-result-node-label red-ui-info-outline-item-label"}).text(n.name||n._def.paletteLabel||n.type).appendTo(contentDiv); | ||||
|         return div; | ||||
|     } | ||||
|  | ||||
| @@ -248,7 +248,8 @@ RED.sidebar.help = (function() { | ||||
|             title = subflowNode.name || nodeType; | ||||
|         } else { | ||||
|             helpText = RED.nodes.getNodeHelp(nodeType)||('<span class="red-ui-help-info-none">'+RED._("sidebar.info.none")+'</span>'); | ||||
|             title = nodeType; | ||||
|             var _def = RED.nodes.registry.getNodeType(nodeType); | ||||
|             title = (_def && _def.paletteLabel)?_def.paletteLabel:nodeType; | ||||
|         } | ||||
|         setInfoText(title, helpText, helpSection); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user