[pbs-devel] [RFC proxmox-backup 2/2] ui: prune: show count for rule

Fabian Ebner f.ebner at proxmox.com
Mon Nov 9 15:53:08 CET 2020


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 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;
-- 
2.20.1






More information about the pbs-devel mailing list