Skip to content

Commit 07a1698

Browse files
committed
fix(ui): schedule checkboxes
1 parent 510ae35 commit 07a1698

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

web/src/components/ScheduleForm.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@
6666
<div class="d-flex flex-wrap">
6767
<v-checkbox
6868
class="mr-2 mt-0 ScheduleCheckbox"
69-
v-for="m in MONTHS" :key="m.id"
69+
v-for="m in MONTHS"
70+
:key="m.id"
7071
:value="m.id"
7172
:label="m.title"
7273
v-model="months"
@@ -338,6 +339,11 @@ export default {
338339
JSON.stringify(parser.parseExpression(this.item.cron_format).fields),
339340
);
340341
342+
this.months = [];
343+
this.weekdays = [];
344+
this.hours = [];
345+
this.minutes = [];
346+
341347
if (this.isHourly(this.item.cron_format)) {
342348
this.minutes = fields.minute;
343349
this.timing = 'hourly';
@@ -356,7 +362,6 @@ export default {
356362
this.weekdays = fields.dayOfWeek;
357363
this.timing = 'weekly';
358364
} else {
359-
this.months = [];
360365
this.weekdays = [];
361366
}
362367
@@ -365,7 +370,6 @@ export default {
365370
this.timing = 'monthly';
366371
} else {
367372
this.months = [];
368-
this.weekdays = [];
369373
}
370374
371375
if (this.isYearly(this.item.cron_format)) {

0 commit comments

Comments
 (0)