Add payload to Inject label to make more helpful

Close #489
This commit is contained in:
Dave C-J 2014-11-14 17:28:08 +00:00
parent 0789b82c15
commit 9863b6e178
1 changed files with 6 additions and 1 deletions

View File

@ -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"; }
},