Fix missing metainfo on some views
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -158,7 +158,6 @@ import RouteName from "../../router/name";
|
||||
metaInfo() {
|
||||
return {
|
||||
title: this.$t("Administration") as string,
|
||||
titleTemplate: "%s | Mobilizon",
|
||||
};
|
||||
},
|
||||
})
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -122,6 +122,11 @@ const PROFILES_PER_PAGE = 10;
|
||||
},
|
||||
},
|
||||
},
|
||||
metaInfo() {
|
||||
return {
|
||||
title: this.$t("Groups") as string,
|
||||
};
|
||||
},
|
||||
components: {
|
||||
EmptyContent,
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user