diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue
index 6313710f..ad5bf5d2 100644
--- a/vue/src/apps/RecipeEditView/RecipeEditView.vue
+++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue
@@ -576,6 +576,21 @@
{{ $t("Copy_template_reference") }}
+
+
+
@@ -648,7 +663,8 @@
v-if="recipe !== undefined">
+ class="d-block d-md-none btn btn-block btn-danger shadow-none btn-sm">
{{ $t("Delete") }}
@@ -1039,6 +1055,12 @@ export default {
this.recipe.steps.splice(new_index < 0 ? 0 : new_index, 0, step)
this.sortSteps()
},
+ moveIngredient: function (step, ingredient, new_index) {
+ step.ingredients.splice(step.ingredients.indexOf(ingredient), 1)
+ step.ingredients.splice(new_index < 0 ? 0 : new_index, 0, ingredient)
+ this.sortIngredients(step)
+ },
+
addFoodType: function (tag, index) {
let [tmp, step, id] = index.split("_")
@@ -1212,6 +1234,10 @@ export default {
}
})
},
+ duplicateIngredient: function (step, ingredient, new_index) {
+ delete ingredient.id
+ step.ingredients.splice(new_index < 0 ? 0 : new_index, 0, ingredient)
+ }
},
}