Skip to content

Commit 97f5a40

Browse files
Merge pull request #7219 from manuelmeister/feature/add-title-to-auth-views
Add title tag to auth & dev pages
2 parents aef6320 + 591becf commit 97f5a40

23 files changed

+48
-42
lines changed

frontend/src/plugins/head.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const environment =
1313
export const unhead = createHead()
1414

1515
useHead({
16+
title: null,
1617
templateParams: {
1718
site: 'eCamp v3',
1819
separator: '·',

frontend/src/views/auth/Activate.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ export default {
4747
activated: null,
4848
}
4949
},
50+
51+
head() {
52+
return {
53+
title: this.$tc('views.auth.activate.title'),
54+
}
55+
},
56+
5057
mounted() {
5158
// TODO: Change, when templated links are available
5259
// this.api.href(this.api.get(), 'users', { userId: this.userId }).then(url => {

frontend/src/views/auth/Login.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ export default {
216216
showCredits: true,
217217
}
218218
},
219+
head() {
220+
return {
221+
title: this.$tc('global.button.login'),
222+
}
223+
},
219224
computed: {
220225
infoTextSuffix() {
221226
return LOGIN_INFO_TEXT_KEY

frontend/src/views/auth/Register.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ export default {
166166
recaptcha: null,
167167
}
168168
},
169+
head() {
170+
return {
171+
title: this.$tc('views.auth.register.register'),
172+
}
173+
},
169174
computed: {
170175
formData() {
171176
return {

frontend/src/views/auth/ResetPassword.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ export default {
130130
}
131131
},
132132
133+
head() {
134+
return {
135+
title: this.$tc('views.auth.resetPassword.title'),
136+
}
137+
},
138+
133139
async mounted() {
134140
if (getEnv().RECAPTCHA_SITE_KEY) {
135141
this.recaptcha = load(getEnv().RECAPTCHA_SITE_KEY, {

frontend/src/views/auth/ResetPasswordRequest.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ export default {
6767
}
6868
},
6969
70+
head() {
71+
return {
72+
title: this.$tc('views.auth.resetPasswordRequest.title'),
73+
}
74+
},
75+
7076
mounted() {
7177
if (getEnv().RECAPTCHA_SITE_KEY) {
7278
this.recaptcha = load(getEnv().RECAPTCHA_SITE_KEY, {

frontend/src/views/camp/CampProgram.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,6 @@ export default {
188188
return {
189189
title: () =>
190190
this.$tc('views.camp.campProgram.title') + ': ' + this.period.description,
191-
templateParams: {
192-
section: this.camp.shortTitle,
193-
},
194191
}
195192
},
196193
computed: {

frontend/src/views/camp/Dashboard.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ export default {
185185
head() {
186186
return {
187187
title: this.$tc('views.camp.dashboard.activities'),
188-
templateParams: {
189-
section: this.camp.shortTitle,
190-
},
191188
}
192189
},
193190
computed: {

frontend/src/views/camp/Story.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ export default {
5959
head() {
6060
return {
6161
title: this.$tc('views.camp.story.title'),
62-
templateParams: {
63-
section: this.camp.shortTitle,
64-
},
6562
}
6663
},
6764
computed: {

frontend/src/views/camp/admin/Activity.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ export default {
3333
head() {
3434
return {
3535
title: this.$tc('views.camp.admin.activity.title'),
36-
templateParams: {
37-
section: this.camp.shortTitle,
38-
},
3936
}
4037
},
4138
}

0 commit comments

Comments
 (0)