mirror of https://github.com/node-red/node-red.git
Reverting fix for #489 while we debate the issue more fully....
parent
7b14e753cd
commit
7da108e129
|
@ -138,12 +138,13 @@
|
|||
icon: "inject.png",
|
||||
label: function() {
|
||||
if (this.payloadType === "string") {
|
||||
if (this.topic !== "") {
|
||||
return this.name||this.topic +" : "+this.payload||this.topic;
|
||||
}
|
||||
else {
|
||||
return this.name||this.payload||this.topic||"inject";
|
||||
}
|
||||
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