Removed views in favor of PostGraphile filter and sort plugins. Updated site modules to GraphQL. Added tag posters.

This commit is contained in:
2020-01-04 02:51:58 +01:00
parent 70e27a6cd9
commit 72b175e9e2
46 changed files with 232 additions and 52 deletions

View File

@@ -3,7 +3,7 @@
v-if="actor"
class="content actor"
>
<FilterBar :fetch-releases="fetchReleases" />
<FilterBar :fetch-releases="fetchActor" />
<div class="actor-inner">
<div class="profile">
@@ -243,8 +243,8 @@ import Photos from './photos.vue';
import FilterBar from '../header/filter-bar.vue';
import Releases from '../releases/releases.vue';
async function fetchReleases() {
this.releases = await this.$store.dispatch('fetchActorReleases', this.$route.params.actorSlug);
async function fetchActor() {
this.actor = await this.$store.dispatch('fetchActors', { actorSlug: this.$route.params.actorSlug });
}
function scrollPhotos(event) {
@@ -252,7 +252,7 @@ function scrollPhotos(event) {
}
async function mounted() {
this.actor = await this.$store.dispatch('fetchActors', { actorSlug: this.$route.params.actorSlug });
this.fetchActor();
if (this.actor) {
this.pageTitle = this.actor.name;
@@ -275,7 +275,7 @@ export default {
},
mounted,
methods: {
fetchReleases,
fetchActor,
scrollPhotos,
},
};