From 9863b6e17830727305b41974b8338c2a6ba5b4c0 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Fri, 14 Nov 2014 17:28:08 +0000 Subject: [PATCH] Add payload to Inject label to make more helpful Close #489 --- nodes/core/core/20-inject.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nodes/core/core/20-inject.html b/nodes/core/core/20-inject.html index 66609f3e5..a7c6b9bc7 100644 --- a/nodes/core/core/20-inject.html +++ b/nodes/core/core/20-inject.html @@ -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"; } },