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() { async function mounted() {
this.networks = await this.$store.dispatch('fetchNetworks'); this.networks = await this.$store.dispatch('fetchNetworks');
this.pageTitle = 'Networks';
} }
function siteCount() { function siteCount() {
@ -33,6 +34,7 @@ export default {
data() { data() {
return { return {
networks: [], networks: [],
pageTitle: null,
}; };
}, },
computed: { computed: {

View File

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