diff options
author | Adam T. Carpenter <atc@53hor.net> | 2022-10-26 21:02:31 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2022-10-26 21:02:31 -0400 |
commit | 9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f (patch) | |
tree | db9ca419266117facecdff6d30460669f3148efb /iridescence/src/components/CartCheckout.vue | |
parent | f243a3b7341012227d6e8342a65f9c5d7784256f (diff) | |
download | theglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.tar.xz theglassyladies-9f3098e80c6b6c87e9bfbfe36239a39e5cafb29f.zip |
init: add some stories and personas and begin layout out domain
Diffstat (limited to 'iridescence/src/components/CartCheckout.vue')
-rw-r--r-- | iridescence/src/components/CartCheckout.vue | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/iridescence/src/components/CartCheckout.vue b/iridescence/src/components/CartCheckout.vue deleted file mode 100644 index 1b327b2..0000000 --- a/iridescence/src/components/CartCheckout.vue +++ /dev/null @@ -1,38 +0,0 @@ -<template> - <div id="cartCheckout"> - <div class="buttons has-addons"> - <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 }} - </button> - </div> - </div> -</template> - -<script> -export default { - name: "CartCheckout", - computed: { - inCart() { - return Object.values(this.$store.state.cart).reduce( - (acc, cur) => acc + cur, - 0 - ); - }, - cartTotal() { - return this.$store.getters.cartTotal; - } - } -}; -</script> |