|
|
|
|
@ -837,7 +837,7 @@ |
|
|
|
|
|
|
|
|
|
schedule.then((response) => { |
|
|
|
|
if (response.data) { |
|
|
|
|
this.scheduleOptions = response.data.results.map((schedule) => { |
|
|
|
|
this.scheduleOptions = _.orderBy(response.data.results.map((schedule) => { |
|
|
|
|
var now = new Date(); |
|
|
|
|
now.setDate(now.getDate() + (schedule.weekday + (7 - now.getDay())) % 7); |
|
|
|
|
|
|
|
|
|
@ -845,7 +845,7 @@ |
|
|
|
|
title: `${schedule.title} (${this.weekdays[schedule.weekday]}, ${moment(now).format("D MMM")})`, |
|
|
|
|
value: moment(now).format('YYYY-MM-DD') |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}), (item)=>{return moment(item.value)}); |
|
|
|
|
} |
|
|
|
|
this.updateCategory(); |
|
|
|
|
}); |
|
|
|
|
|