From dda68fc7f3de2396041ffa0baec629a9060b6bf9 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Fri, 11 Jul 2025 19:07:12 +0000 Subject: [PATCH] remove unused disableAmount props --- .../Recipe/RecipeDialogAddToShoppingList.vue | 3 -- .../Domain/Recipe/RecipeIngredientEditor.vue | 42 +------------------ .../Recipe/RecipeIngredientListItem.vue | 4 -- .../Domain/Recipe/RecipeIngredients.vue | 7 +--- .../Domain/Recipe/RecipePage/RecipePage.vue | 1 - .../RecipePageIngredientEditor.vue | 1 - .../RecipePageIngredientToolsView.vue | 1 - .../RecipePageInstructions.vue | 1 - .../ShoppingList/ShoppingListItemEditor.vue | 11 +---- 9 files changed, 3 insertions(+), 68 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipeDialogAddToShoppingList.vue b/frontend/components/Domain/Recipe/RecipeDialogAddToShoppingList.vue index c7ed432b3..47fb19d61 100644 --- a/frontend/components/Domain/Recipe/RecipeDialogAddToShoppingList.vue +++ b/frontend/components/Domain/Recipe/RecipeDialogAddToShoppingList.vue @@ -140,7 +140,6 @@
@@ -188,7 +187,6 @@ export interface RecipeWithScale extends Recipe { export interface ShoppingListIngredient { checked: boolean; ingredient: RecipeIngredient; - disableAmount: boolean; } export interface ShoppingListIngredientSection { @@ -299,7 +297,6 @@ export default defineNuxtComponent({ return { checked: !householdsWithFood.includes(userHousehold.value), ingredient: ing, - disableAmount: recipe.settings?.disableAmount || false, }; }); diff --git a/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue b/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue index 87c00259b..e4f9ecd11 100644 --- a/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue +++ b/frontend/components/Domain/Recipe/RecipeIngredientEditor.vue @@ -17,32 +17,6 @@ class="d-flex flex-wrap my-1" > - - - - - - - + /> ({ required: true }); const props = defineProps({ - disableAmount: { - type: Boolean, - default: false, - }, allowInsertIngredient: { type: Boolean, default: false, diff --git a/frontend/components/Domain/Recipe/RecipeIngredientListItem.vue b/frontend/components/Domain/Recipe/RecipeIngredientListItem.vue index 28d89d9e5..a5b817737 100644 --- a/frontend/components/Domain/Recipe/RecipeIngredientListItem.vue +++ b/frontend/components/Domain/Recipe/RecipeIngredientListItem.vue @@ -38,10 +38,6 @@ export default defineNuxtComponent({ type: Object as () => RecipeIngredient, required: true, }, - disableAmount: { - type: Boolean, - default: false, - }, scale: { type: Number, default: 1, diff --git a/frontend/components/Domain/Recipe/RecipeIngredients.vue b/frontend/components/Domain/Recipe/RecipeIngredients.vue index 25e2cb937..c43210923 100644 --- a/frontend/components/Domain/Recipe/RecipeIngredients.vue +++ b/frontend/components/Domain/Recipe/RecipeIngredients.vue @@ -43,7 +43,6 @@ @@ -65,10 +64,6 @@ export default defineNuxtComponent({ type: Array as () => RecipeIngredient[], default: () => [], }, - disableAmount: { - type: Boolean, - default: false, - }, scale: { type: Number, default: 1, @@ -99,7 +94,7 @@ export default defineNuxtComponent({ components.push(`[${ingredient.title}]`); } - components.push(parseIngredientText(ingredient, props.disableAmount, props.scale, false)); + components.push(parseIngredientText(ingredient, props.scale, false)); }); return components.join("\n"); diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue index 46eda6bbc..24e9e8af4 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePage.vue @@ -141,7 +141,6 @@ diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientEditor.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientEditor.vue index 375de0448..bacbe8063 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientEditor.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientEditor.vue @@ -27,7 +27,6 @@ :key="ingredient.referenceId" v-model="recipe.recipeIngredient[index]" class="list-group-item" - :disable-amount="recipe.settings.disableAmount" @delete="recipe.recipeIngredient.splice(index, 1)" @insert-above="insertNewIngredient(index)" @insert-below="insertNewIngredient(index + 1)" diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientToolsView.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientToolsView.vue index 88e47f0d5..6ae3ef733 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientToolsView.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageIngredientToolsView.vue @@ -3,7 +3,6 @@
diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue index 56c6812df..ab03e1785 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructions.vue @@ -325,7 +325,6 @@ return step.ingredientReferences.map((ref) => ref.referenceId).includes(ing.referenceId || '') })" :scale="scale" - :disable-amount="recipe.settings.disableAmount" :is-cook-mode="isCookMode" />
diff --git a/frontend/components/Domain/ShoppingList/ShoppingListItemEditor.vue b/frontend/components/Domain/ShoppingList/ShoppingListItemEditor.vue index 8ed581310..e10a70332 100644 --- a/frontend/components/Domain/ShoppingList/ShoppingListItemEditor.vue +++ b/frontend/components/Domain/ShoppingList/ShoppingListItemEditor.vue @@ -2,7 +2,7 @@
-
+
@@ -26,9 +26,6 @@ />
-
- -