Set page title for networks and tags overviews.

This commit is contained in:
ThePendulum 2020-01-31 00:12:58 +01:00
parent aab304dd20
commit c48d04de0f
2 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import Network from '../tile/network.vue';
async function mounted() {
this.networks = await this.$store.dispatch('fetchNetworks');
this.pageTitle = 'Networks';
}
function siteCount() {
@ -33,6 +34,7 @@ export default {
data() {
return {
networks: [],
pageTitle: null,
};
},
computed: {

View File

@ -117,6 +117,8 @@ async function mounted() {
return { ...acc, [tag.group.slug]: [tag] };
}, { misc: [] });
this.pageTitle = 'Tags';
}
export default {
@ -126,6 +128,7 @@ export default {
data() {
return {
tags: {},
pageTitle: null,
};
},
mounted,