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.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/iridescence/src/components/CartCheckout.vue b/iridescence/src/components/CartCheckout.vue
index cde78d9..590e5b9 100644
--- a/iridescence/src/components/CartCheckout.vue
+++ b/iridescence/src/components/CartCheckout.vue
@@ -2,7 +2,7 @@
<div id="cartCheckout">
<div class="buttons has-addons">
<router-link to="/cart" class="button is-primary is-rounded"
- >🛒</router-link
+ >🛒 {{ checkoutReady }}</router-link
>
<button class="button is-static">x{{ inCart }}</button>
<button class="button is-static is-rounded">
@@ -24,6 +24,13 @@ export default {
},
cartTotal() {
return this.$store.getters.cartTotal;
+ },
+ checkoutReady() {
+ if (this.inCart) {
+ return "Checkout";
+ } else {
+ return "";
+ }
}
}
};