Also special case backup schedule with * for hours
This commit is contained in:
@@ -91,10 +91,12 @@ defineExpose({
|
||||
const tmp = target.schedule.split(' ');
|
||||
const tmpHours = tmp[2].split(',');
|
||||
const tmpDays = tmp[5].split(',');
|
||||
|
||||
if (tmpDays[0] === '*') days.value = cronDays.map((day) => { return day.id; });
|
||||
else days.value = tmpDays.map((day) => { return parseInt(day, 10); });
|
||||
|
||||
hours.value = tmpHours.map((hour) => { return parseInt(hour, 10); });
|
||||
if (tmpHours[0] === '*') hours.value = cronHours.map(h => h.id);
|
||||
else hours.value = tmpHours.map((hour) => { return parseInt(hour, 10); });
|
||||
|
||||
dialog.value.open();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user