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 722b9de7e3
commit c9592f35f0

View File

@ -120,6 +120,16 @@ const POSTS_PAGE_LIMIT = 10;
components: { components: {
PostElementItem, 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 { export default class PostList extends Vue {
@Prop({ required: true, type: String }) preferredUsername!: string; @Prop({ required: true, type: String }) preferredUsername!: string;