increase days shown in mealplan to 15
This commit is contained in:
parent
287bd47ffa
commit
212e89ca49
1 changed files with 6 additions and 6 deletions
|
|
@ -10,7 +10,7 @@
|
|||
<div v-if="showDatePicker" class="date-picker-dropdown">
|
||||
<ul>
|
||||
<li
|
||||
v-for="(day, index) in nextSevenDays"
|
||||
v-for="(day, index) in days"
|
||||
:key="index"
|
||||
@mousedown="selectDate(day)">
|
||||
{{ formatDay(day) }}
|
||||
|
|
@ -40,17 +40,17 @@
|
|||
},
|
||||
},
|
||||
computed: {
|
||||
nextSevenDays() {
|
||||
days() {
|
||||
const today = new Date();
|
||||
const nextSevenDays = [];
|
||||
const days = [];
|
||||
|
||||
for (let i = 0; i < 7; i++) {
|
||||
for (let i = 0; i < 15; i++) {
|
||||
const date = new Date(today);
|
||||
date.setDate(today.getDate() + i);
|
||||
nextSevenDays.push(date);
|
||||
days.push(date);
|
||||
}
|
||||
|
||||
return nextSevenDays;
|
||||
return days;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue