mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
0789b82c15
commit
9863b6e178
@ -138,7 +138,12 @@
|
||||
icon: "inject.png",
|
||||
label: function() {
|
||||
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"; }
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user