From 5751052a0df80260ea9e7c66ee222e95de4e35e3 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Tue, 24 Nov 2020 19:39:04 -0500 Subject: you can now see cart items on cart page --- iridescence/src/components/cart/CartItem.vue | 76 ++++++++++++++++++---------- iridescence/src/views/Cart.vue | 24 +++++++-- 2 files changed, 69 insertions(+), 31 deletions(-) (limited to 'iridescence') diff --git a/iridescence/src/components/cart/CartItem.vue b/iridescence/src/components/cart/CartItem.vue index 8c2de16..c39ab13 100644 --- a/iridescence/src/components/cart/CartItem.vue +++ b/iridescence/src/components/cart/CartItem.vue @@ -1,39 +1,59 @@ diff --git a/iridescence/src/views/Cart.vue b/iridescence/src/views/Cart.vue index 7060b60..f1c369c 100644 --- a/iridescence/src/views/Cart.vue +++ b/iridescence/src/views/Cart.vue @@ -1,9 +1,22 @@ @@ -13,6 +26,11 @@ import CartItem from "@/components/cart/CartItem.vue"; export default { name: "Cart", + computed: { + items() { + return Object.entries(this.$store.state.cart); + } + }, components: { CartItem } -- cgit v1.2.3