From 429d381f63b5a663e54ea364766a7a46e32dc184 Mon Sep 17 00:00:00 2001 From: MaxJa4 <74194322+MaxJa4@users.noreply.github.com> Date: Mon, 28 Feb 2022 19:43:37 +0100 Subject: [PATCH] Auto selects amount of ingredient when adding new ingredient. --- vue/src/apps/RecipeEditView/RecipeEditView.vue | 2 +- vue/src/locales/de.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index e1dca9e595..3a97167da3 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -802,7 +802,7 @@ export default { no_amount: false, }) this.sortIngredients(step) - this.$nextTick(() => document.getElementById(`amount_${this.recipe.steps.indexOf(step)}_${step.ingredients.length - 1}`).focus()) + 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") }))) { diff --git a/vue/src/locales/de.json b/vue/src/locales/de.json index 5f27dab5d5..f9b66e191c 100644 --- a/vue/src/locales/de.json +++ b/vue/src/locales/de.json @@ -335,5 +335,6 @@ "sort_by": "Sortiere nach", "Random Recipes": "Zufällige Rezepte", "recipe_filter": "Rezept-Filter", - "parameter_count": "Parameter {count}" + "parameter_count": "Parameter {count}", + "paste_ingredients": "Zutaten einfügen" }