From 7121137145edaa79a51dadd1b1345e6ac0c9aba3 Mon Sep 17 00:00:00 2001 From: artus40 Date: Tue, 12 Feb 2019 21:48:09 +0100 Subject: [PATCH] adds Template custom object, starts SlotSelect component --- web/vue/src/App.vue | 5 +- web/vue/src/components/Planner.vue | 95 ++++++++++++------- web/vue/src/components/RecipeDetails.vue | 12 +-- web/vue/src/components/planner/SlotSelect.vue | 29 ++++++ 4 files changed, 98 insertions(+), 43 deletions(-) create mode 100644 web/vue/src/components/planner/SlotSelect.vue diff --git a/web/vue/src/App.vue b/web/vue/src/App.vue index 1a8d03b..9fbf6e2 100644 --- a/web/vue/src/App.vue +++ b/web/vue/src/App.vue @@ -31,7 +31,6 @@ import RecipeDetails from './components/RecipeDetails.vue' import RecipeList from './components/RecipeList.vue' import Planner from './components/Planner.vue' - export default { name: 'app', components: { @@ -99,8 +98,10 @@ export default { }, mounted () { this.fetchRecipesList(); - this.initWeekPlanning(); + + console.log("MOUNTED !"); } + } diff --git a/web/vue/src/components/Planner.vue b/web/vue/src/components/Planner.vue index 4d9baea..8887386 100644 --- a/web/vue/src/components/Planner.vue +++ b/web/vue/src/components/Planner.vue @@ -6,10 +6,10 @@ FetchSolution
-
-

{{ day_meals[0] }}

-
+

{{ day }}

+

{{ meal.key[1] }} {{ meal.value.title }} @@ -26,20 +26,6 @@