Add title information to post list page

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-19 09:27:13 +02:00
parent 31bc2f7c10
commit 4e02885692
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -120,6 +120,16 @@ const POSTS_PAGE_LIMIT = 10;
components: {
PostElementItem,
},
metaInfo() {
return {
// if no subcomponents specify a metaInfo.title, this title will be used
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
title: this.$t("My groups") as string,
// all titles will be injected into this template
titleTemplate: "%s | Mobilizon",
};
},
})
export default class PostList extends Vue {
@Prop({ required: true, type: String }) preferredUsername!: string;