From 672124385aca1f264c7d9fc1f7b0414569690bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sat, 13 Nov 2021 15:02:22 +0100 Subject: [PATCH] [chore] server side filtering for ingredients --- .../CalculationTable/Ingredients.vue | 65 ++++++++++++++++--- src/store.ts | 32 +++++++++ 2 files changed, 88 insertions(+), 9 deletions(-) diff --git a/src/components/CalculationTable/Ingredients.vue b/src/components/CalculationTable/Ingredients.vue index e431ca2..4e5ba4b 100644 --- a/src/components/CalculationTable/Ingredients.vue +++ b/src/components/CalculationTable/Ingredients.vue @@ -9,7 +9,8 @@
- {{ get_drink_ingredient_name(ingredient.drink_ingredient.ingredient_id) }} + + {{ ingredient.drink_ingredient.name }} @@ -107,8 +112,10 @@ v-model="newIngredient" filled dense + use-input label="Zutat" :options="[...drinks, ...extra_ingredients]" + @filter="filter" option-label="name" />
@@ -155,7 +162,7 @@