mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
shorten ping label if more than one target
This commit is contained in:
parent
7667de5ced
commit
9b1eeb2756
@ -74,8 +74,8 @@ var timerParameterValidator = function(node,v){
|
||||
},
|
||||
label: function() {
|
||||
let lbl = this.name||this.host||this._("ping.ping");
|
||||
if(lbl.length > 20){
|
||||
lbl = lbl.substring(0,17) + "..."
|
||||
if (lbl.split(',').length > 1){
|
||||
lbl = this._("ping.ping");
|
||||
}
|
||||
return lbl;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user