ui: PruneInputPanel: add keepReason 'protected' for protected backups
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
87e17fb4d1
commit
adcc21716b
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user