shorten ping label if more than one target

This commit is contained in:
Dave Conway-Jones 2020-04-03 17:55:30 +01:00
parent 7667de5ced
commit 9b1eeb2756
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ var timerParameterValidator = function(node,v){
}, },
label: function() { label: function() {
let lbl = this.name||this.host||this._("ping.ping"); let lbl = this.name||this.host||this._("ping.ping");
if(lbl.length > 20){ if (lbl.split(',').length > 1){
lbl = lbl.substring(0,17) + "..." lbl = this._("ping.ping");
} }
return lbl; return lbl;
}, },