Fix up backup contents UI
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user