Uppercase string representation of backup pattern
This commit is contained in:
@@ -222,7 +222,7 @@ function prettyBackupSchedule(pattern) {
|
||||
if (!pattern) return '';
|
||||
|
||||
const tmp = pattern.split(' ');
|
||||
if (tmp.length === 1) return pattern; // case for 'never'
|
||||
if (tmp.length === 1) return pattern.charAt(0).toUpperCase() + pattern.slice(1); // case for 'never' - capitalize
|
||||
|
||||
const hours = tmp[2].split(','), days = tmp[5].split(',');
|
||||
let prettyDay;
|
||||
|
||||
Reference in New Issue
Block a user