From a70ebd5130d3eef9504377cd96ced3fa02d146ca Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 22 Dec 2023 14:35:17 +0100 Subject: [PATCH] somewhat working list --- .../ShoppingListView/ShoppingListView.vue | 77 +--- vue/src/components/ShoppingLineItem.vue | 398 +++--------------- vue/src/stores/ShoppingListStore.js | 10 + 3 files changed, 87 insertions(+), 398 deletions(-) diff --git a/vue/src/apps/ShoppingListView/ShoppingListView.vue b/vue/src/apps/ShoppingListView/ShoppingListView.vue index c48bc217..712b5c1e 100644 --- a/vue/src/apps/ShoppingListView/ShoppingListView.vue +++ b/vue/src/apps/ShoppingListView/ShoppingListView.vue @@ -113,66 +113,22 @@ -
-
-
- {{ $t("Completed") }} -
-
- - -
- - -
- - - - - - -
-
-
-
-
-
+ + + + + @@ -704,7 +660,9 @@ export default { id: undefined, }, add_recipe_servings: 1, - shopping_list_height: '60vh' + shopping_list_height: '60vh', + + shopping_list_store: useShoppingListStore() } }, computed: { @@ -926,6 +884,7 @@ export default { store.refreshFromAPI() }, methods: { + useShoppingListStore, /** * failed requests to sync entry check events are automatically re-queued by the service worker for sync * this command allows to manually force replaying those events before re-enabling automatic sync diff --git a/vue/src/components/ShoppingLineItem.vue b/vue/src/components/ShoppingLineItem.vue index e9796e22..6dadfa2b 100644 --- a/vue/src/components/ShoppingLineItem.vue +++ b/vue/src/components/ShoppingLineItem.vue @@ -1,96 +1,31 @@