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:
parent
48d6fe5918
commit
6917919f35
@ -275,7 +275,7 @@
|
|||||||
icon: "bridge.svg",
|
icon: "bridge.svg",
|
||||||
align: "right",
|
align: "right",
|
||||||
label: function() {
|
label: function() {
|
||||||
return this.name||this.topic||"mqtt";
|
return this.name||this.topic||(this.topicAlias ? "@"+this.topicAlias : "mqtt");
|
||||||
},
|
},
|
||||||
oneditprepare: function() {
|
oneditprepare: function() {
|
||||||
$("#node-input-broker").change(function(d){
|
$("#node-input-broker").change(function(d){
|
||||||
|
Loading…
Reference in New Issue
Block a user