Fix missing metainfo on some views

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-05-25 16:21:29 +02:00
parent c07ae1c785
commit 6353c4f372
40 changed files with 203 additions and 16 deletions

View File

@@ -129,6 +129,16 @@ const EVENTS_PAGE_LIMIT = 10;
Subtitle,
EventListViewCard,
},
metaInfo() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const { group } = this;
return {
title: this.$t("{group} events", {
group: group.name || usernameWithDomain(group),
}) as string,
};
},
})
export default class GroupEvents extends mixins(GroupMixin) {
group!: IGroup;