ui: running task: increase active limit we show in badge to 99

Two digits fit nicely, and the extra plus for the >99 case doesn't
takes that much space either. So that and the fact that 9 is just
really low makes me bump this to 99 as cut-off value.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-07-09 21:56:45 +02:00
parent 41067870c6
commit a0eb0cd372

View File

@ -83,7 +83,7 @@ Ext.define('PBS.TaskButton', {
if (!success) return;
let count = records.length;
let text = count > 9 ? '9+' : count.toString();
let text = count > 99 ? '99+' : count.toString();
let cls = count > 0 ? 'active': '';
me.setBadgeText(text);
me.setBadgeCls(cls);