Skip to content

Commit

Permalink
bug-fix: Reboot, Timelapseのscheduleがreloadで見えなくなる(設定はされている)問題の対応
Browse files Browse the repository at this point in the history
  • Loading branch information
mnakada committed Aug 21, 2022
1 parent 342a78c commit cc9d695
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions web/source/vue/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,12 @@
if(this.config.TIMELAPSE_SCHEDULE) {
const str = this.config.TIMELAPSE_SCHEDULE.split(' ');
const days = (str[4] || '').split(':');
this.timelapse.startTime = `${str[1].padStart(2, '0')}:${str[0].padStart(2, '0')}`;
this.timelapse.dayOfWeekSelect = days.map(d => (parseInt(d) + 6) % 7);
this.timelapse.interval = this.config.TIMELAPSE_INTERVAL;
this.timelapse.count = this.config.TIMELAPSE_COUNT;
this.timelapse = {
startTime: `${str[1].padStart(2, '0')}:${str[0].padStart(2, '0')}`,
dayOfWeekSelect: days.map(d => (parseInt(d) + 6) % 7),
interval: this.config.TIMELAPSE_INTERVAL,
count: this.config.TIMELAPSE_COUNT,
};
}
this.cruiseList = (this.config.CRUISE_LIST || '').split(';').reduce((array, cmd) => {
Expand Down Expand Up @@ -464,8 +466,10 @@
if(this.config.REBOOT_SCHEDULE) {
const str = this.config.REBOOT_SCHEDULE.split(' ');
const days = (str[4] || '').split(':');
this.reboot.startTime = `${str[1].padStart(2, '0')}:${str[0].padStart(2, '0')}`;
this.reboot.dayOfWeekSelect = days.map(d => (parseInt(d) + 6) % 7);
this.reboot = {
startTime: `${str[1].padStart(2, '0')}:${str[0].padStart(2, '0')}`,
dayOfWeekSelect: days.map(d => (parseInt(d) + 6) % 7),
};
}
setInterval(async () => {
Expand Down

0 comments on commit cc9d695

Please sign in to comment.