From adcc21716bd80af7330dd1b70f4d9d1248c95de2 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 27 Oct 2021 13:22:35 +0200 Subject: [PATCH] ui: PruneInputPanel: add keepReason 'protected' for protected backups Signed-off-by: Dominik Csapak Signed-off-by: Wolfgang Bumiller --- www/datastore/Prune.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/datastore/Prune.js b/www/datastore/Prune.js index 42ea21bf..e4db4b6c 100644 --- a/www/datastore/Prune.js +++ b/www/datastore/Prune.js @@ -103,6 +103,10 @@ Ext.define('PBS.Datastore.PruneInputPanel', { let rule = nextRule(); for (let backup of backups) { if (backup.keep) { + if (backup.protected) { + backup.keepReason = 'protected'; + continue; + } counter[rule]++; if (rule !== 'keep-all') { backup.keepReason = rule + ': ' + counter[rule];