summaryrefslogtreecommitdiff
path: root/iridescence/src/components/cart/Totals.vue
diff options
context:
space:
mode:
Diffstat (limited to 'iridescence/src/components/cart/Totals.vue')
-rw-r--r--iridescence/src/components/cart/Totals.vue25
1 files changed, 25 insertions, 0 deletions
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>