From 4e028856923bab64ecf9103063d66b1ea65d7ad6 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 19 Oct 2020 09:27:13 +0200 Subject: [PATCH] Add title information to post list page Signed-off-by: Thomas Citharel --- js/src/views/Posts/List.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/src/views/Posts/List.vue b/js/src/views/Posts/List.vue index 30d515820..214704117 100644 --- a/js/src/views/Posts/List.vue +++ b/js/src/views/Posts/List.vue @@ -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;