Fix up backup contents UI

This commit is contained in:
Girish Ramakrishnan
2025-09-26 11:51:10 +02:00
parent 73ddf48d12
commit a8f88d7c4d
4 changed files with 52 additions and 26 deletions
+10 -1
View File
@@ -239,11 +239,20 @@ function prettyBackupRetention(retention) {
return tmp ? tmp.name : '';
}
function prettyBackupContents(contents) {
if (!contents) return 'Everything';
console.log(contents);
if (contents.include) return `Only ${contents.include.length} item(s)`;
if (contents.exclude) return `Exclude ${contents.exclude.length} item(s)`;
return '';
}
export default {
create,
backupRetentions,
cronDays,
cronHours,
prettyBackupSchedule,
prettyBackupRetention
prettyBackupRetention,
prettyBackupContents
};