From 6917919f35b9fa1a369710ebbb580439dabead20 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 7 Dec 2020 09:41:43 +0000 Subject: [PATCH] show name as @x if alias is set but topic is not - e.g. @1 denotes alias 1 is set but topic is empty --- packages/node_modules/@node-red/nodes/core/network/10-mqtt.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html index d9961e42a..4db2f8fc0 100644 --- a/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html +++ b/packages/node_modules/@node-red/nodes/core/network/10-mqtt.html @@ -275,7 +275,7 @@ icon: "bridge.svg", align: "right", label: function() { - return this.name||this.topic||"mqtt"; + return this.name||this.topic||(this.topicAlias ? "@"+this.topicAlias : "mqtt"); }, oneditprepare: function() { $("#node-input-broker").change(function(d){