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

@@ -321,6 +321,14 @@ const MEMBERS_PER_PAGE = 3;
ActorCard,
EmptyContent,
},
metaInfo() {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const { group } = this;
return {
title: group ? group.name || usernameWithDomain(group) : "",
};
},
})
export default class AdminGroupProfile extends Vue {
@Prop({ required: true }) id!: string;

View File

@@ -158,7 +158,6 @@ import RouteName from "../../router/name";
metaInfo() {
return {
title: this.$t("Administration") as string,
titleTemplate: "%s | Mobilizon",
};
},
})

View File

@@ -87,6 +87,11 @@ import RouteName from "../../router/name";
},
},
},
metaInfo() {
return {
title: this.$t("Follows") as string,
};
},
})
export default class Follows extends Vue {
RouteName = RouteName;

View File

@@ -122,6 +122,11 @@ const PROFILES_PER_PAGE = 10;
},
},
},
metaInfo() {
return {
title: this.$t("Groups") as string,
};
},
components: {
EmptyContent,
},

View File

@@ -126,6 +126,11 @@ const PROFILES_PER_PAGE = 10;
components: {
EmptyContent,
},
metaInfo() {
return {
title: this.$t("Profiles") as string,
};
},
})
export default class Profiles extends Vue {
PROFILES_PER_PAGE = PROFILES_PER_PAGE;

View File

@@ -347,6 +347,11 @@ import RouteName from "../../router/name";
adminSettings: ADMIN_SETTINGS,
languages: LANGUAGES,
},
metaInfo() {
return {
title: this.$t("Settings") as string,
};
},
})
export default class Settings extends Vue {
adminSettings!: IAdminSettings;

View File

@@ -132,6 +132,11 @@ const USERS_PER_PAGE = 10;
},
},
},
metaInfo() {
return {
title: this.$t("Users") as string,
};
},
})
export default class Users extends Vue {
USERS_PER_PAGE = USERS_PER_PAGE;