summaryrefslogtreecommitdiff
path: root/iridescence/src/components/CartCheckout.vue
diff options
context:
space:
mode:
Diffstat (limited to 'iridescence/src/components/CartCheckout.vue')
-rw-r--r--iridescence/src/components/CartCheckout.vue16
1 files changed, 11 insertions, 5 deletions
diff --git a/iridescence/src/components/CartCheckout.vue b/iridescence/src/components/CartCheckout.vue
index 19ad706..cde78d9 100644
--- a/iridescence/src/components/CartCheckout.vue
+++ b/iridescence/src/components/CartCheckout.vue
@@ -1,10 +1,13 @@
<template>
<div id="cartCheckout">
- <div class="buttons">
- <router-link to="/cart" class="button">Cart ({{ inCart }})</router-link>
- <router-link to="/checkout" class="button is-primary">
- Checkout
- </router-link>
+ <div class="buttons has-addons">
+ <router-link to="/cart" class="button is-primary is-rounded"
+ >🛒</router-link
+ >
+ <button class="button is-static">x{{ inCart }}</button>
+ <button class="button is-static is-rounded">
+ {{ cartTotal }}
+ </button>
</div>
</div>
</template>
@@ -18,6 +21,9 @@ export default {
(acc, cur) => acc + cur,
0
);
+ },
+ cartTotal() {
+ return this.$store.getters.cartTotal;
}
}
};