From d8d44376d193d925582a0a12373e1403df49cf63 Mon Sep 17 00:00:00 2001
From: "Adam T. Carpenter" <atc@53hor.net>
Date: Thu, 3 Dec 2020 19:25:12 -0500
Subject: basic cart subtotaling, sidebar with total and checkout controls,
 better navbar cart buttons

---
 iridescence/src/components/cart/Totals.vue | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 iridescence/src/components/cart/Totals.vue

(limited to 'iridescence/src/components/cart/Totals.vue')

diff --git a/iridescence/src/components/cart/Totals.vue b/iridescence/src/components/cart/Totals.vue
new file mode 100644
index 0000000..7b95462
--- /dev/null
+++ b/iridescence/src/components/cart/Totals.vue
@@ -0,0 +1,25 @@
+<template>
+  <div>
+    <h1 class="subtitle has-text-centered">
+      Summary
+    </h1>
+    <h1 class="title has-text-centered">
+      {{ cartTotal }}
+    </h1>
+    <router-link to="/checkout" class="button is-primary">
+      Checkout
+    </router-link>
+  </div>
+</template>
+
+<script>
+export default {
+  name: "Totals",
+  computed: {
+    cartTotal() {
+      return this.$store.getters.cartTotal;
+    }
+  },
+  methods: {}
+};
+</script>
-- 
cgit v1.2.3

