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…
Reference in New Issue