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 @@
-
+
@@ -267,18 +271,18 @@
@@ -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: {