MS-491: Make visibility of "Lernziele"-title configurable
This commit is contained in:
parent
67d7da5d9c
commit
0d8c95013b
|
|
@ -9,6 +9,8 @@ module.exports = {
|
||||||
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
||||||
VUE_APP_JS_TITLE: '"My KV"',
|
VUE_APP_JS_TITLE: '"My KV"',
|
||||||
VUE_APP_ENABLE_FOOTER: "false",
|
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
|
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ const values = {
|
||||||
MATOMO_HOST: JSON.stringify(process.env.MATOMO_HOST),
|
MATOMO_HOST: JSON.stringify(process.env.MATOMO_HOST),
|
||||||
MATOMO_SITE_ID: JSON.stringify(process.env.MATOMO_SITE_ID),
|
MATOMO_SITE_ID: JSON.stringify(process.env.MATOMO_SITE_ID),
|
||||||
LOGOUT_REDIRECT_URL: JSON.stringify(process.env.LOGOUT_REDIRECT_URL),
|
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,
|
* 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
|
* and JS needs quotes around strings
|
||||||
|
|
@ -17,6 +18,7 @@ const values = {
|
||||||
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
||||||
VUE_APP_JS_TITLE: '"mySkillbox"',
|
VUE_APP_JS_TITLE: '"mySkillbox"',
|
||||||
VUE_APP_ENABLE_FOOTER: "true",
|
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
|
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 id="objectives">
|
<h3 id="objectives">
|
||||||
Lernziele
|
<span v-show="showObjectivesTitle">Lernziele</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="module__objective-groups">
|
<div class="module__objective-groups">
|
||||||
|
|
@ -99,6 +99,9 @@
|
||||||
}
|
}
|
||||||
return this.module.bookmark.note;
|
return this.module.bookmark.note;
|
||||||
},
|
},
|
||||||
|
showObjectivesTitle() {
|
||||||
|
return process.env.VUE_APP_SHOW_OBJECTIVES_TITLE;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue