Also special case backup schedule with * for hours

This commit is contained in:
Johannes Zellner
2025-08-22 16:54:49 +02:00
parent bbc5217c81
commit 3625eb01e2

View File

@@ -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();
}