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">
|
<div v-if="showDatePicker" class="date-picker-dropdown">
|
||||||
<ul>
|
<ul>
|
||||||
<li
|
<li
|
||||||
v-for="(day, index) in nextSevenDays"
|
v-for="(day, index) in days"
|
||||||
:key="index"
|
:key="index"
|
||||||
@mousedown="selectDate(day)">
|
@mousedown="selectDate(day)">
|
||||||
{{ formatDay(day) }}
|
{{ formatDay(day) }}
|
||||||
|
|
@ -40,17 +40,17 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
nextSevenDays() {
|
days() {
|
||||||
const today = new Date();
|
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);
|
const date = new Date(today);
|
||||||
date.setDate(today.getDate() + i);
|
date.setDate(today.getDate() + i);
|
||||||
nextSevenDays.push(date);
|
days.push(date);
|
||||||
}
|
}
|
||||||
|
|
||||||
return nextSevenDays;
|
return days;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue