diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue
index 37392547..4770c995 100644
--- a/vue/src/apps/MealPlanView/MealPlanView.vue
+++ b/vue/src/apps/MealPlanView/MealPlanView.vue
@@ -2,7 +2,7 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ day.date_label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -207,52 +271,21 @@
@reload-meal-types="refreshMealTypes"
>
-
-
-
-
-
+
{{$t("Create")}}
+ class="fas fa-calendar-plus"> {{ $t("Create") }}
@@ -379,6 +412,22 @@ export default {
return ""
}
},
+ mobileSimpleGrid() {
+ let grid = []
+
+ if (useMealPlanStore().plan_list.length > 0 && this.current_period !== null) {
+ for (const x of Array(7).keys()) {
+ let moment_date = moment(this.current_period.periodStart).add(x, "d")
+ grid.push({
+ date: moment_date,
+ create_default_date: moment_date.format("YYYY-MM-DD"), // improve meal plan edit modal to do formatting itself and accept dates
+ date_label: moment_date.format('DD.MM'),
+ plan_entries: useMealPlanStore().plan_list.filter((m) => moment(m.date).isSame(moment_date, 'day'))
+ })
+ }
+ }
+ return grid
+ }
},
mounted() {
this.$nextTick(function () {
@@ -601,6 +650,10 @@ export default {