forked from DebaucheryLibrarian/traxxx
Added filter bar to all pages. Added 'upcoming' marker. Improved date tidbit.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
v-if="tag"
|
||||
class="content tag"
|
||||
>
|
||||
<FilterBar :fetch-releases="fetchReleases" />
|
||||
|
||||
<div class="header">
|
||||
<span>
|
||||
<h2 class="title">
|
||||
@@ -30,17 +32,25 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import FilterBar from '../header/filter-bar.vue';
|
||||
import ReleaseTile from '../tile/release.vue';
|
||||
|
||||
async function mounted() {
|
||||
[this.tag] = await this.$store.dispatch('fetchTags', this.$route.params.tagSlug);
|
||||
async function fetchReleases() {
|
||||
this.releases = await this.$store.dispatch('fetchTagReleases', this.$route.params.tagSlug);
|
||||
}
|
||||
|
||||
async function mounted() {
|
||||
[[this.tag]] = await Promise.all([
|
||||
this.$store.dispatch('fetchTags', this.$route.params.tagSlug),
|
||||
this.fetchReleases(),
|
||||
]);
|
||||
|
||||
this.pageTitle = this.tag.name;
|
||||
}
|
||||
|
||||
export default {
|
||||
components: {
|
||||
FilterBar,
|
||||
ReleaseTile,
|
||||
},
|
||||
data() {
|
||||
@@ -51,6 +61,9 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted,
|
||||
methods: {
|
||||
fetchReleases,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user