From d09eb64a41e72e35850c7d1b51601338beeabd16 Mon Sep 17 00:00:00 2001 From: harry Date: Wed, 18 Oct 2023 21:30:17 +0100 Subject: [PATCH] Change step deletion confirmation --- vue/src/apps/RecipeEditView/RecipeEditView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index 927b3de63..22911c2db 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -1089,7 +1089,8 @@ export default { } }, removeStep: function (step) { - if (confirm(this.$t("confirm_delete", {object: this.$t("Step")}))) { + const step_index = this.recipe.steps.indexOf(step) + if (confirm(this.$t("delete_confirmation", {source: `${this.$t("Step")} "${step.name || step_index}"`}))) { this.recipe.steps = this.recipe.steps.filter((item) => item !== step) } },