From a0eb0cd3727240585eaed6fe39d0f17f15cdfee8 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 9 Jul 2020 21:56:45 +0200 Subject: [PATCH] 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 --- www/button/TaskButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/button/TaskButton.js b/www/button/TaskButton.js index 67cc1477..514d2bca 100644 --- a/www/button/TaskButton.js +++ b/www/button/TaskButton.js @@ -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);