summaryrefslogtreecommitdiff
path: root/iridescence/src/components/ProductList.vue
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-09-12 08:35:13 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-09-12 08:35:13 -0400
commit92b5b5cc69fdd3dfe67ea07a0fcf26bdd3c930f8 (patch)
tree5a4998f7e75bd140319be6e5136d57ceb3990b7b /iridescence/src/components/ProductList.vue
parent07e2b64c03c2fb566f324310f89b88797881b039 (diff)
downloadtheglassyladies-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.vue36
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>