From 7a3a15168820bbeeaca9e33aad99f374c3f09f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Fri, 9 Apr 2021 23:49:49 +0200 Subject: [PATCH] [pricelist] cleanup some code --- .../pricelist/components/CalculationTable.vue | 23 ++++- .../DrinkPriceVolumeTable/NewVolume.vue | 2 +- .../CalculationTable/DrinkPriceVolumes.vue | 91 +++++++++++++---- .../CalculationTable/Ingredients.vue | 87 ++++++++++------- .../pricelist/components/DrinkModify.vue | 94 ++++++++++++++++++ .../pricelist/pages/CocktailBuilder.vue | 6 +- src/plugins/pricelist/store.ts | 97 +++---------------- src/plugins/pricelist/utils/utils.ts | 71 ++++++++++++++ 8 files changed, 323 insertions(+), 148 deletions(-) create mode 100644 src/plugins/pricelist/components/DrinkModify.vue create mode 100644 src/plugins/pricelist/utils/utils.ts diff --git a/src/plugins/pricelist/components/CalculationTable.vue b/src/plugins/pricelist/components/CalculationTable.vue index 224c275..854f22b 100644 --- a/src/plugins/pricelist/components/CalculationTable.vue +++ b/src/plugins/pricelist/components/CalculationTable.vue @@ -371,8 +371,13 @@ props.row.uuid ? `/api/pricelist/picture/${props.row.uuid}?size=256` : 'no-image.svg' " > -
- +
+
@@ -447,14 +452,20 @@ />
- - +
+ + + diff --git a/src/plugins/pricelist/components/CalculationTable/Ingredients.vue b/src/plugins/pricelist/components/CalculationTable/Ingredients.vue index c829e4c..9a308ca 100644 --- a/src/plugins/pricelist/components/CalculationTable/Ingredients.vue +++ b/src/plugins/pricelist/components/CalculationTable/Ingredients.vue @@ -1,8 +1,8 @@ diff --git a/src/plugins/pricelist/pages/CocktailBuilder.vue b/src/plugins/pricelist/pages/CocktailBuilder.vue index addffcf..eb572e7 100644 --- a/src/plugins/pricelist/pages/CocktailBuilder.vue +++ b/src/plugins/pricelist/pages/CocktailBuilder.vue @@ -27,7 +27,7 @@