forked from DebaucheryLibrarian/traxxx
Removed views in favor of PostGraphile filter and sort plugins. Updated site modules to GraphQL. Added tag posters.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
v-if="site"
|
||||
class="content site"
|
||||
>
|
||||
<FilterBar :fetch-releases="fetchReleases" />
|
||||
<FilterBar :fetch-releases="fetchSite" />
|
||||
|
||||
<div class="content-inner">
|
||||
<div class="header">
|
||||
@@ -59,15 +59,13 @@
|
||||
import FilterBar from '../header/filter-bar.vue';
|
||||
import Releases from '../releases/releases.vue';
|
||||
|
||||
async function fetchReleases() {
|
||||
this.releases = await this.$store.dispatch('fetchSiteReleases', this.$route.params.siteSlug);
|
||||
async function fetchSite() {
|
||||
this.site = await this.$store.dispatch('fetchSites', { siteSlug: this.$route.params.siteSlug });
|
||||
this.releases = this.site.releases;
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
[[this.site]] = await Promise.all([
|
||||
this.$store.dispatch('fetchSites', this.$route.params.siteSlug),
|
||||
this.fetchReleases(),
|
||||
]);
|
||||
await this.fetchSite();
|
||||
|
||||
this.pageTitle = this.site.name;
|
||||
}
|
||||
@@ -86,7 +84,7 @@ export default {
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
fetchReleases,
|
||||
fetchSite,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user