mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
support empty meal-plans
This commit is contained in:
parent
e662e43288
commit
fba3ed68fa
4 changed files with 29 additions and 22 deletions
|
@ -33,7 +33,7 @@
|
|||
:key="generateKey(meal.slug, index)"
|
||||
>
|
||||
<v-img
|
||||
class="rounded-lg"
|
||||
class="rounded-lg info"
|
||||
:src="getImage(meal.image)"
|
||||
height="80"
|
||||
width="80"
|
||||
|
@ -105,7 +105,6 @@ export default {
|
|||
editPlan(id) {
|
||||
this.plannedMeals.forEach((element) => {
|
||||
if (element.uid === id) {
|
||||
console.log(element);
|
||||
this.editMealPlan = element;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -107,7 +107,7 @@ export default {
|
|||
this.meals = [];
|
||||
for (let i = 0; i < this.dateDif; i++) {
|
||||
this.meals.push({
|
||||
slug: "",
|
||||
slug: "empty",
|
||||
date: this.getDate(i),
|
||||
dateText: this.getDayText(i),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue