MS-491: Make visibility of "Lernziele"-title configurable

This commit is contained in:
Daniel Egger 2022-05-10 12:33:47 +02:00
parent 67d7da5d9c
commit 0d8c95013b
3 changed files with 8 additions and 1 deletions

View File

@ -9,6 +9,8 @@ module.exports = {
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
VUE_APP_JS_TITLE: '"My KV"',
VUE_APP_ENABLE_FOOTER: "false",
VUE_APP_SHOW_OBJECTIVES_TITLE: "false",
/*
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
*/

View File

@ -7,6 +7,7 @@ const values = {
MATOMO_HOST: JSON.stringify(process.env.MATOMO_HOST),
MATOMO_SITE_ID: JSON.stringify(process.env.MATOMO_SITE_ID),
LOGOUT_REDIRECT_URL: JSON.stringify(process.env.LOGOUT_REDIRECT_URL),
VUE_APP_TYPE: JSON.stringify(process.env.APP_TYPE),
/*
* ENV variables used in JS code need to be stringyfied, as they will be replaced (in place) in the code,
* and JS needs quotes around strings
@ -17,6 +18,7 @@ const values = {
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
VUE_APP_JS_TITLE: '"mySkillbox"',
VUE_APP_ENABLE_FOOTER: "true",
VUE_APP_SHOW_OBJECTIVES_TITLE: "true",
/*
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes

View File

@ -40,7 +40,7 @@
</div>
<h3 id="objectives">
Lernziele
<span v-show="showObjectivesTitle">Lernziele</span>
</h3>
<div class="module__objective-groups">
@ -99,6 +99,9 @@
}
return this.module.bookmark.note;
},
showObjectivesTitle() {
return process.env.VUE_APP_SHOW_OBJECTIVES_TITLE;
}
},
};
</script>