From a20a877dc7d2eacfdae52c98d01a6451ae7791ae Mon Sep 17 00:00:00 2001 From: smilerz Date: Wed, 15 Dec 2021 15:48:55 -0600 Subject: [PATCH] fix after rebase --- vue/src/apps/RecipeView/RecipeView.vue | 35 ++---------- vue/src/components/MealPlanEditModal.vue | 68 +----------------------- vue/src/components/RecipeCard.vue | 11 ++-- 3 files changed, 11 insertions(+), 103 deletions(-) diff --git a/vue/src/apps/RecipeView/RecipeView.vue b/vue/src/apps/RecipeView/RecipeView.vue index dbd71ca3..9a73a544 100644 --- a/vue/src/apps/RecipeView/RecipeView.vue +++ b/vue/src/apps/RecipeView/RecipeView.vue @@ -93,30 +93,7 @@
-
-
-
-
-

{{ $t("Ingredients") }}

-
-
-
- -
-
+
@@ -173,22 +150,18 @@ import "bootstrap-vue/dist/bootstrap-vue.css" import { apiLoadRecipe } from "@/utils/api" -import Step from "@/components/StepComponent" import RecipeContextMenu from "@/components/RecipeContextMenu" import { ResolveUrlMixin, ToastMixin } from "@/utils/utils" -import Ingredient from "@/components/IngredientComponent" import PdfViewer from "@/components/PdfViewer" import ImageViewer from "@/components/ImageViewer" -import Nutrition from "@/components/NutritionComponent" import moment from "moment" -import Keywords from "@/components/KeywordsComponent" import LoadingSpinner from "@/components/LoadingSpinner" -import AddRecipeToBook from "@/components/AddRecipeToBook" +import AddRecipeToBook from "@/components/Modals/AddRecipeToBook" import RecipeRating from "@/components/RecipeRating" import LastCooked from "@/components/LastCooked" -import IngredientComponent from "@/components/IngredientComponent" +import IngredientsCard from "@/components/IngredientsCard" import StepComponent from "@/components/StepComponent" import KeywordsComponent from "@/components/KeywordsComponent" import NutritionComponent from "@/components/NutritionComponent" @@ -205,7 +178,7 @@ export default { RecipeRating, PdfViewer, ImageViewer, - IngredientComponent, + IngredientsCard, StepComponent, RecipeContextMenu, NutritionComponent, diff --git a/vue/src/components/MealPlanEditModal.vue b/vue/src/components/MealPlanEditModal.vue index 7fc8169b..02353c4e 100644 --- a/vue/src/components/MealPlanEditModal.vue +++ b/vue/src/components/MealPlanEditModal.vue @@ -82,7 +82,7 @@
- +
@@ -93,72 +93,6 @@
-
-
- - - {{ $t("Recipe") }} - - - - {{ $t("Meal_Type_Required") }} - {{ $t("Meal_Type") }} - - - - - - - - {{ $t("Servings") }} - - - {{ $t("Share") }} - -
-
- -
-
-
-
- {{ $t("Delete") }} - {{ $t("Save") }} -
-
diff --git a/vue/src/components/RecipeCard.vue b/vue/src/components/RecipeCard.vue index 95b8392a..664b4f64 100755 --- a/vue/src/components/RecipeCard.vue +++ b/vue/src/components/RecipeCard.vue @@ -37,11 +37,11 @@

-
+
{{ $t("Ingredients") }}
- +
@@ -77,14 +77,15 @@ export default { meal_plan: Object, footer_text: String, footer_icon: String, + detailed: { type: Boolean, default: true }, }, mounted() {}, computed: { - detailed: function () { - return this.recipe?.steps !== undefined + show_detail: function () { + return this.recipe?.steps !== undefined && this.detailed }, text_length: function () { - if (this.detailed) { + if (this.show_detail) { return 200 } else { return 120