From 3cf89aca1018d5a57fc30ef5b7238358f75004e3 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 7 Apr 2024 12:54:05 +0200 Subject: [PATCH] playing with calendars --- vue3/src/components/display/RecipeCard.vue | 28 +++++++------- vue3/src/pages/MealPlanPage.vue | 43 +++++++++++----------- vue3/src/pages/SearchPage.vue | 12 +++++- 3 files changed, 48 insertions(+), 35 deletions(-) diff --git a/vue3/src/components/display/RecipeCard.vue b/vue3/src/components/display/RecipeCard.vue index 62cd900df..6bb0c8090 100644 --- a/vue3/src/components/display/RecipeCard.vue +++ b/vue3/src/components/display/RecipeCard.vue @@ -21,6 +21,8 @@ class="float-start ms-1 mt-1" v-if="recipe.waitingTime != undefined && recipe.waitingTime > 0"> {{ recipe.waitingTime }} + + @@ -34,22 +36,22 @@ {{ recipe.name }} - + by {{ recipe.createdBy}} - - - - + + + + + + + + + + + + diff --git a/vue3/src/pages/MealPlanPage.vue b/vue3/src/pages/MealPlanPage.vue index 974497095..b7aebfcb5 100644 --- a/vue3/src/pages/MealPlanPage.vue +++ b/vue3/src/pages/MealPlanPage.vue @@ -1,41 +1,42 @@ diff --git a/vue3/src/pages/SearchPage.vue b/vue3/src/pages/SearchPage.vue index 512887eea..ae3756a5d 100644 --- a/vue3/src/pages/SearchPage.vue +++ b/vue3/src/pages/SearchPage.vue @@ -1,5 +1,8 @@ @@ -24,7 +27,14 @@ export default defineComponent({ }, methods: { - + testApi: function () { + const api = new ApiApi() + api.apiMealPlanList().then(r => { + if (r.length > 0 && r[0].id != undefined) { + api.apiMealPlanUpdate({id: r[0].id, mealPlanRequest: r[0]}) + } + }) + } } })