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

@@ -108,6 +108,11 @@ import { ApolloCache, FetchResult, InMemoryCache } from "@apollo/client/core";
},
config: CONFIG,
},
metaInfo() {
return {
title: this.$t("Create a new group") as string,
};
},
})
export default class CreateGroup extends mixins(IdentityEditionMixin) {
currentActor!: IPerson;

View File

@@ -571,7 +571,6 @@ import { PERSON_MEMBERSHIP_GROUP } from "@/graphql/actor";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
title: this.groupTitle,
titleTemplate: "%s | Mobilizon",
meta: [
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore

View File

@@ -160,6 +160,11 @@ import { Paginate } from "@/types/paginate";
components: {
EmptyContent,
},
metaInfo() {
return {
title: this.$t("Group Followers") as string,
};
},
})
export default class GroupFollowers extends mixins(GroupMixin) {
loading = true;

View File

@@ -265,6 +265,11 @@ import EmptyContent from "@/components/Utils/EmptyContent.vue";
components: {
EmptyContent,
},
metaInfo() {
return {
title: this.$t("Group Members") as string,
};
},
})
export default class GroupMembers extends mixins(GroupMixin) {
loading = true;

View File

@@ -196,6 +196,11 @@ import { ErrorResponse } from "@apollo/client/link/error";
apollo: {
config: CONFIG,
},
metaInfo() {
return {
title: this.$t("Group settings") as string,
};
},
})
export default class GroupSettings extends mixins(GroupMixin) {
loading = true;