diff --git a/src/components/shopping/FullShoppingListPage.vue b/src/components/shopping/FullShoppingListPage.vue new file mode 100644 index 0000000..2b48751 --- /dev/null +++ b/src/components/shopping/FullShoppingListPage.vue @@ -0,0 +1,82 @@ + + + + + \ No newline at end of file diff --git a/src/components/shopping/FullShoppingPage.vue b/src/components/shopping/FullShoppingPage.vue deleted file mode 100644 index d5ccc32..0000000 --- a/src/components/shopping/FullShoppingPage.vue +++ /dev/null @@ -1,64 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/shopping/MealSelectionList.vue b/src/components/shopping/MealSelectionList.vue index d0d0fc8..be5e754 100644 --- a/src/components/shopping/MealSelectionList.vue +++ b/src/components/shopping/MealSelectionList.vue @@ -4,7 +4,7 @@
  • - + @@ -138,6 +138,14 @@ export default { this.$emit('meal-unselected', meal); } }, + isChecked(meal) { + for (const checkedMeal of this.checked) { + if (checkedMeal.id === meal.id) { + return true; + } + } + return false; + } } } diff --git a/src/components/shopping/MyShoppingPage.vue b/src/components/shopping/MyShoppingPage.vue index 7fcba4d..0f2345a 100644 --- a/src/components/shopping/MyShoppingPage.vue +++ b/src/components/shopping/MyShoppingPage.vue @@ -1,6 +1,7 @@