mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	@@ -138,7 +138,12 @@
 | 
				
			|||||||
        icon: "inject.png",
 | 
					        icon: "inject.png",
 | 
				
			||||||
        label: function() {
 | 
					        label: function() {
 | 
				
			||||||
            if (this.payloadType === "string") {
 | 
					            if (this.payloadType === "string") {
 | 
				
			||||||
                return this.name||this.topic||this.payload||"inject";
 | 
					                if (this.topic !== "") {
 | 
				
			||||||
 | 
					                    return this.name||this.topic +" : "+this.payload||this.topic;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					                else {
 | 
				
			||||||
 | 
					                    return this.name||this.payload||this.topic||"inject";
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else { return this.name||this.topic||"inject"; }
 | 
					            else { return this.name||this.topic||"inject"; }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user