summaryrefslogtreecommitdiff
path: root/iridescence/src/components/admin/ProductEditList.vue
blob: 91c0929535ee33b70cb818a36b4f1dc0a5e7c6d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
  <div id="productEditList">
    <div class="columns is-multiline is-variable is-desktop">
      <div
        class="column is-one-third-desktop"
        v-for="product in products"
        :key="product.id"
      >
        <ProductEditCard v-bind:oldid="product.id"></ProductEditCard>
      </div>
    </div>
  </div>
</template>

<script>
import ProductEditCard from "@/components/admin/ProductEditCard.vue";

export default {
  name: "ProductsList",
  components: {
    ProductEditCard
  },
  computed: {
    products() {
      return this.$store.getters.products;
    }
  },
  created() {
    this.$store.dispatch("refreshProducts");
  }
};
</script>