diff --git a/vue/src/apps/ShoppingListView/ShoppingListView.vue b/vue/src/apps/ShoppingListView/ShoppingListView.vue
index fd5c458b..2ea04cf7 100644
--- a/vue/src/apps/ShoppingListView/ShoppingListView.vue
+++ b/vue/src/apps/ShoppingListView/ShoppingListView.vue
@@ -3,10 +3,10 @@
{{ $t("OfflineAlert") }}
-
-
+
+
+ v-if="c.count_unchecked > 0 || user_preference_store.device_settings.shopping_show_checked_entries && (c.count_unchecked + c.count_checked) > 0">
@@ -72,8 +72,12 @@
}}
{{ c.name }}
-
-
+ 0))">
+
+
@@ -115,7 +119,8 @@
class="fas fa-trash fa-fw">
-
+
@@ -402,26 +407,26 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -748,7 +753,16 @@ export default {
})
}
},
-
+ /**
+ * set checked state for all foods->entries of a group
+ * @param group group to set state
+ * @param checked_state checked state to set group to
+ */
+ checkGroup(group, checked_state) {
+ for (let f in group.foods) {
+ useShoppingListStore().setEntriesCheckedState(group.foods[f].entries, checked_state, false)
+ }
+ },
// TODO cleanup, review data structure, probably move to its own component --> FOR ALL SUPERMARKET FUNCTIONS
deleteSupermarket(index) {
this.$bvModal.msgBoxConfirm(this.$t('Are_You_Sure'), {