traxxx/assets/components/home/home.vue

51 lines
1.0 KiB
Vue
Raw Normal View History

<template>
<div class="content">
<FilterBar :fetch-releases="fetchReleases" />
<div class="content-inner">
<ul class="scenes nolist">
<li
v-for="release in releases"
:key="release.id"
class="scene"
>
<ReleaseTile :release="release" />
</li>
</ul>
</div>
</div>
</template>
<script>
import FilterBar from '../header/filter-bar.vue';
import ReleaseTile from '../tile/release.vue';
2019-09-10 14:48:04 +00:00
async function fetchReleases() {
this.releases = await this.$store.dispatch('fetchReleases');
}
async function mounted() {
this.pageTitle = '';
await this.fetchReleases();
}
export default {
components: {
FilterBar,
ReleaseTile,
},
data() {
return {
releases: [],
networks: [],
pageTitle: null,
};
},
mounted,
methods: {
fetchReleases,
},
};
</script>