From 8bbbc1b9effb67b8a4f1cc8ca6f8f06133c84941 Mon Sep 17 00:00:00 2001 From: harry Date: Wed, 18 Oct 2023 21:09:33 +0100 Subject: [PATCH] Change remove ingredient confirmation --- vue/src/apps/RecipeEditView/RecipeEditView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index 573cc0914..927b3de63 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -1084,7 +1084,7 @@ export default { this.$nextTick(() => document.getElementById(`amount_${this.recipe.steps.indexOf(step)}_${step.ingredients.length - 1}`).select()) }, removeIngredient: function (step, ingredient) { - if (confirm(this.$t("confirm_delete", {object: this.$t("Ingredient")}))) { + if (confirm(this.$t("delete_confirmation", {source: `"${ingredient.food.name}"`}))) { step.ingredients = step.ingredients.filter((item) => item !== ingredient) } },