diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue index 4770c995a..eece28dff 100644 --- a/vue/src/apps/MealPlanView/MealPlanView.vue +++ b/vue/src/apps/MealPlanView/MealPlanView.vue @@ -74,13 +74,13 @@
- +
-

{{ day.date_label }}

+
{{ day.date_label }}
-
@@ -94,13 +94,17 @@
- {{ - plan.recipe.name - }} + + {{ plan.recipe.name }} +
+ {{ plan.meal_type_name }} - + + {{ plan.recipe.working_time + plan.recipe.waiting_time}} {{ $t('min')}} + +
- +
@@ -267,18 +271,18 @@
- - {{ $t("Export_To_ICal") }} - + class="fas fa-calendar-plus"> {{ $t("Create") }} + + + {{ $t("Export_To_ICal") }} +
@@ -364,7 +368,7 @@ export default { shopping_list: [], current_period: null, entryEditing: null, - edit_modal_default_date: null, + mealplan_default_date: null, ical_url: window.ICAL_URL, } }, @@ -538,7 +542,7 @@ export default { this.showDate = d }, createEntryClick(data) { - this.edit_modal_default_date = moment(data).format("YYYY-MM-DD") + this.mealplan_default_date = moment(data).format("YYYY-MM-DD") this.entryEditing = null this.$nextTick(function () { this.$bvModal.show(`id_meal_plan_edit_modal`) @@ -633,6 +637,15 @@ export default { entry: plan_entry, } }, + showMealPlanEditModal: function (entry, date) { + this.mealplan_default_date = date + this.entryEditing = entry + + this.$nextTick(function () { + this.$bvModal.show(`id_meal_plan_edit_modal`) + }) + + } }, directives: { hover: {