diff --git a/client/config/prod.env.js b/client/config/prod.env.js index 309f2528..a9b4f3ec 100644 --- a/client/config/prod.env.js +++ b/client/config/prod.env.js @@ -11,6 +11,7 @@ module.exports = { VUE_APP_LOGO: JSON.stringify(process.env.VUE_APP_LOGO) || '"/static/logo.png"', VUE_APP_ENABLE_PORTFOLIO: process.env.ENABLE_PORTFOLIO || "true", VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL, + VUE_APP_JS_TITLE: JSON.stringify(process.env.VUE_APP_TITLE) || '"mySkillbox"', /* * Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes */ diff --git a/client/src/mixins/page-title.js b/client/src/mixins/page-title.js new file mode 100644 index 00000000..502730d4 --- /dev/null +++ b/client/src/mixins/page-title.js @@ -0,0 +1,7 @@ +export default { + data() { + return { + pageTitle: process.env.VUE_APP_JS_TITLE + }; + } +}; diff --git a/client/src/pages/hello.vue b/client/src/pages/hello.vue index c19bf855..a91bee0d 100644 --- a/client/src/pages/hello.vue +++ b/client/src/pages/hello.vue @@ -2,7 +2,7 @@

Wollen Sie mySkillbox jetzt im Unterricht verwenden?

+ data-cy="hello-title">Wollen Sie {{ pageTitle }} jetzt im Unterricht verwenden?
+ class="hep-link">{{ pageTitle }} für Lehrpersonen + class="hep-link">{{ pageTitle }} für Lernende
@@ -75,9 +75,10 @@ import LoadingButton from '@/components/LoadingButton'; import me from '@/mixins/me'; import logout from '@/mixins/logout'; +import pageTitleMixin from '@/mixins/page-title'; export default { - mixins: [me, logout], + mixins: [me, logout, pageTitleMixin], components: {LoadingButton}, data() { diff --git a/client/src/pages/onboarding/start.vue b/client/src/pages/onboarding/start.vue index e2461de1..b2d6b941 100644 --- a/client/src/pages/onboarding/start.vue +++ b/client/src/pages/onboarding/start.vue @@ -4,7 +4,7 @@

Herzlich willkommen!

- Schauen Sie sich die Einführung an und lernen Sie mySkillbox kennen. + Schauen Sie sich die Einführung an und lernen Sie {{ pageTitle }} kennen.

@@ -12,9 +12,13 @@ diff --git a/client/src/pages/registration.vue b/client/src/pages/registration.vue index 7e70bf39..fc1bfdc3 100644 --- a/client/src/pages/registration.vue +++ b/client/src/pages/registration.vue @@ -1,10 +1,11 @@