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 @@
- 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 @@Für {{ helloEmail }} haben wir kein Hep Konto gefunden.
+Für {{ helloEmail }} haben wir kein + Hep Konto gefunden.
Schauen Sie sich jetzt die Einführung zu mySkillbox an.
+Schauen Sie sich jetzt die Einführung zu {{ pageTitle }} an.