mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
Change remove ingredient confirmation
This commit is contained in:
@@ -1084,7 +1084,7 @@ export default {
|
|||||||
this.$nextTick(() => document.getElementById(`amount_${this.recipe.steps.indexOf(step)}_${step.ingredients.length - 1}`).select())
|
this.$nextTick(() => document.getElementById(`amount_${this.recipe.steps.indexOf(step)}_${step.ingredients.length - 1}`).select())
|
||||||
},
|
},
|
||||||
removeIngredient: function (step, ingredient) {
|
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)
|
step.ingredients = step.ingredients.filter((item) => item !== ingredient)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user