From 73751eff7688ec9994c098ba95f1c08fad210e31 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 25 Jul 2021 16:31:16 +0200 Subject: Product page shows amount of product in cart. Allows for removal of product from cart. Product page now uses Vuex instead of local values. --- client/src/views/Product.vue | 49 +++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 26 deletions(-) (limited to 'client/src/views') diff --git a/client/src/views/Product.vue b/client/src/views/Product.vue index 11643c1..ff43857 100644 --- a/client/src/views/Product.vue +++ b/client/src/views/Product.vue @@ -4,15 +4,19 @@
- +
-

- Price: ${{ productPrice }}
-

+

+
Price: ${{ curProduct.price }}
+

+

Amount: {{curProductQuantity}}

+
+
@@ -22,35 +26,28 @@