From 3f30b32c2e26875e5cc630ed01a611cba5157ca4 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Mon, 9 Nov 2020 15:53:08 +0100 Subject: [PATCH] ui: prune: show count for rule Signed-off-by: Fabian Ebner --- www/datastore/Prune.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/www/datastore/Prune.js b/www/datastore/Prune.js index 531204f1..5ff2c459 100644 --- a/www/datastore/Prune.js +++ b/www/datastore/Prune.js @@ -76,9 +76,13 @@ Ext.define('PBS.DataStorePruneInputPanel', { for (let backup of backups) { if (backup.keep) { counter[rule]++; - backup.keepReason = rule; - if (rule !== 'keep-all' && counter[rule] >= params[rule]) { - rule = nextRule(); + if (rule !== 'keep-all') { + backup.keepReason = rule + ': ' + counter[rule]; + if (counter[rule] >= params[rule]) { + rule = nextRule(); + } + } else { + backup.keepReason = rule; } } } @@ -212,7 +216,7 @@ Ext.define('PBS.DataStorePrune', { isCreate: true, - fieldDefaults: { labelWidth: 120 }, + fieldDefaults: { labelWidth: 130 }, initComponent: function() { var me = this;