1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

show name as @x if alias is set but topic is not

- e.g. @1 denotes alias 1 is set but topic is empty
This commit is contained in:
Steve-Mcl 2020-12-07 09:41:43 +00:00
parent 48d6fe5918
commit 6917919f35

View File

@ -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){