summaryrefslogtreecommitdiff
path: root/iridescence/src/components/CartCheckout.vue
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-12-18 17:09:30 -0500
committerAdam T. Carpenter <atc@53hor.net>2020-12-18 17:09:30 -0500
commitba965367090f183d62490c6a5e4d5ef5ea654dad (patch)
tree600a5760ea6ff8ac2af85bfbdd6b16bf7b2deef3 /iridescence/src/components/CartCheckout.vue
parentc6a15597b65f303a52b4d3d55fef79583b8ff9be (diff)
downloadtheglassyladies-ba965367090f183d62490c6a5e4d5ef5ea654dad.tar.xz
theglassyladies-ba965367090f183d62490c6a5e4d5ef5ea654dad.zip
icons everywhere, also finalized checkout form
Diffstat (limited to 'iridescence/src/components/CartCheckout.vue')
-rw-r--r--iridescence/src/components/CartCheckout.vue19
1 files changed, 10 insertions, 9 deletions
diff --git a/iridescence/src/components/CartCheckout.vue b/iridescence/src/components/CartCheckout.vue
index 590e5b9..1b327b2 100644
--- a/iridescence/src/components/CartCheckout.vue
+++ b/iridescence/src/components/CartCheckout.vue
@@ -1,9 +1,17 @@
<template>
<div id="cartCheckout">
<div class="buttons has-addons">
- <router-link to="/cart" class="button is-primary is-rounded"
- >🛒 {{ checkoutReady }}</router-link
+ <router-link
+ v-if="inCart"
+ to="/cart"
+ class="button is-success is-rounded"
>
+ <span class="iconify-inline" data-icon="mdi-cart"></span>
+ <span>Checkout</span></router-link
+ >
+ <a v-else class="button is-static is-rounded">
+ <span class="iconify-inline" data-icon="mdi-cart"></span>
+ </a>
<button class="button is-static">x{{ inCart }}</button>
<button class="button is-static is-rounded">
{{ cartTotal }}
@@ -24,13 +32,6 @@ export default {
},
cartTotal() {
return this.$store.getters.cartTotal;
- },
- checkoutReady() {
- if (this.inCart) {
- return "Checkout";
- } else {
- return "";
- }
}
}
};