increase days shown in mealplan to 15

This commit is contained in:
jacob 2024-11-12 11:13:31 +00:00
parent 287bd47ffa
commit 212e89ca49

View file

@ -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: {