diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-09-12 08:35:13 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-09-12 08:35:13 -0400 |
commit | 92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8 (patch) | |
tree | 5a4998f7e75bd140319be6e5136d57ceb3990b7b /iridescence/src/components/ProductList.vue | |
parent | 07e2b64c03c2fb566f324310f89b88797881b039 (diff) | |
download | theglassyladies-92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8.tar.xz theglassyladies-92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8.zip |
Moved testing products into api/dichroism; renamed inventory to
products.
Diffstat (limited to 'iridescence/src/components/ProductList.vue')
-rw-r--r-- | iridescence/src/components/ProductList.vue | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/iridescence/src/components/ProductList.vue b/iridescence/src/components/ProductList.vue new file mode 100644 index 0000000..537e802 --- /dev/null +++ b/iridescence/src/components/ProductList.vue @@ -0,0 +1,36 @@ +<template> + <div id="productsList"> + <div class="columns is-multiline is-variable is-7-desktop"> + <div + class="column is-one-quarter" + v-for="item in products" + :key="item.id" + > + <ProductCard v-bind="item"></ProductCard> + </div> + </div> + </div> +</template> + +<script> +import ProductCard from "@/components/ProductCard.vue"; + +export default { + name: "ProductsList", + components: { + ProductCard + }, + data() { + return {}; + }, + computed: { + products() { + return this.$store.getters.products; + } + }, + methods: {}, + created() { + this.$store.dispatch("refreshProducts"); + } +}; +</script> |