Fix backupsite view when schedule is never
This commit is contained in:
@@ -220,7 +220,10 @@ const cronHours = Array.from({ length: 24 }).map(function (v, i) { return { id:
|
||||
|
||||
function prettyBackupSchedule(pattern) {
|
||||
if (!pattern) return '';
|
||||
|
||||
const tmp = pattern.split(' ');
|
||||
if (tmp.length === 1) return pattern; // case for 'never'
|
||||
|
||||
const hours = tmp[2].split(','), days = tmp[5].split(',');
|
||||
let prettyDay;
|
||||
if (days.length === 7 || days[0] === '*') {
|
||||
|
||||
Reference in New Issue
Block a user