Fix title & meta

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-10 16:47:38 +02:00
parent d2e74695f6
commit 040faf4451
12 changed files with 134 additions and 1 deletions

View File

@@ -81,6 +81,14 @@ import { IConfig } from '@/types/config.model';
query: CURRENT_USER_CLIENT,
},
},
metaInfo() {
return {
// if no subcomponents specify a metaInfo.title, this title will be used
title: this.$t('Login on Mobilizon!') as string,
// all titles will be injected into this template
titleTemplate: '%s | Mobilizon',
};
},
})
export default class Login extends Vue {
@Prop({ type: String, required: false, default: '' }) email!: string;

View File

@@ -105,7 +105,16 @@ import { CREATE_USER } from '@/graphql/user';
import { Component, Prop, Vue } from 'vue-property-decorator';
import { RouteName } from '@/router';
@Component
@Component({
metaInfo() {
return {
// if no subcomponents specify a metaInfo.title, this title will be used
title: this.$t('Register an account on Mobilizon!') as string,
// all titles will be injected into this template
titleTemplate: '%s | Mobilizon',
};
},
})
export default class Register extends Vue {
@Prop({ type: String, required: false, default: '' }) email!: string;
@Prop({ type: String, required: false, default: '' }) password!: string;