From 0b40414d2365fc782ade27dc2177c6f9f707607d Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 24 Feb 2023 16:10:16 +0100 Subject: [PATCH] basic context menu for meal plan working --- vue/src/apps/MealPlanView/MealPlanView.vue | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue index 7d4f09b9d..9db96652c 100644 --- a/vue/src/apps/MealPlanView/MealPlanView.vue +++ b/vue/src/apps/MealPlanView/MealPlanView.vue @@ -83,33 +83,33 @@ - +
+ :src="plan.entry.recipe.image" rounded="circle" v-if="plan.entry.recipe?.image">
- {{ plan.recipe.name }} - {{ plan.title }} + {{ plan.entry.recipe.name }} + {{ plan.entry.title }}
- - {{ plan.note }}
+ + {{ plan.entry.note }}
- - {{ plan.meal_type_name }} - - - {{ plan.recipe.working_time + plan.recipe.waiting_time }} {{ $t('min') }} + + {{ plan.entry.meal_type_name }} + + - {{ plan.entry.recipe.working_time + plan.entry.recipe.waiting_time }} {{ $t('min') }}
- +
@@ -432,7 +432,7 @@ export default { 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('ddd DD.MM'), - plan_entries: useMealPlanStore().plan_list.filter((m) => moment(m.date).isSame(moment_date, 'day')) + plan_entries: this.plan_items.filter((m) => moment(m.startDate).isSame(moment_date, 'day')) }) } }