Add time2learn link configurable with flavor

This commit is contained in:
Lorenz Padberg 2024-05-01 09:22:22 +02:00
parent 41d8e973e8
commit cc3b6a9c37
3 changed files with 24 additions and 2 deletions

View File

@ -78,6 +78,19 @@
Portfolio Portfolio
</router-link> </router-link>
</div> </div>
<div
class="content-navigation__item content-navigation__item--secondary"
v-if="showTime2Learn"
>
<a
active-class="content-navigation__link--active"
class="content-navigation__link content-navigation__link--secondary"
href="https://app.time2learn.ch/app/login.aspx "
target="_blank"
>
time2learn
</a>
</div>
<div <div
class="content-navigation__item content-navigation__item--secondary" class="content-navigation__item content-navigation__item--secondary"
v-if="isSidebar" v-if="isSidebar"
@ -121,6 +134,9 @@ export default {
showPortfolio() { showPortfolio() {
return this.$flavor.showPortfolio; return this.$flavor.showPortfolio;
}, },
showTime2Learn() {
return this.$flavor.showTime2Learn;
},
}, },
methods: { methods: {
@ -169,8 +185,8 @@ export default {
justify-self: center; justify-self: center;
/* /*
* For IE10+ * For IE10+
*/ */
-ms-grid-column: 2; -ms-grid-column: 2;
-ms-grid-row-align: center; -ms-grid-row-align: center;
-ms-grid-column-align: center; -ms-grid-column-align: center;

View File

@ -22,6 +22,7 @@ export const defaultFlavorValues: FlavorValues = {
showInstrumentFilterSidebar: true, showInstrumentFilterSidebar: true,
showInstrumentSubCategories: true, showInstrumentSubCategories: true,
showPortfolio: true, showPortfolio: true,
showTime2Learn: false,
showEHB: true, showEHB: true,
helloIllustration: 'HelloIllustration', helloIllustration: 'HelloIllustration',
showModuleFilter: false, showModuleFilter: false,
@ -50,6 +51,7 @@ export const myKvValues: FlavorValues = {
showObjectivesTitle: false, showObjectivesTitle: false,
showInstrumentFilterSidebar: true, showInstrumentFilterSidebar: true,
showPortfolio: true, showPortfolio: true,
showTime2Learn: true,
showInstrumentSubCategories: false, showInstrumentSubCategories: false,
showEHB: false, showEHB: false,
helloIllustration: 'HelloMyKVIllustration', helloIllustration: 'HelloMyKVIllustration',
@ -66,6 +68,7 @@ export const dhaValues: FlavorValues = Object.assign({}, myKvValues, {
textAppName: 'myDHA', textAppName: 'myDHA',
helloIllustration: 'HelloMyDHAIllustration', helloIllustration: 'HelloMyDHAIllustration',
showLanguageFilter: false, showLanguageFilter: false,
showTime2Learn: true,
}); });
export const dhfValues: FlavorValues = Object.assign({}, myKvValues, { export const dhfValues: FlavorValues = Object.assign({}, myKvValues, {
@ -76,4 +79,6 @@ export const dhfValues: FlavorValues = Object.assign({}, myKvValues, {
textAppName: 'myDHF', textAppName: 'myDHF',
helloIllustration: 'HelloMyDHFIllustration', helloIllustration: 'HelloMyDHFIllustration',
showLanguageFilter: false, showLanguageFilter: false,
showTime2Learn: true,
}); });

View File

@ -16,6 +16,7 @@ export interface FlavorValues {
showInstrumentFilterSidebar: boolean; showInstrumentFilterSidebar: boolean;
showInstrumentSubCategories: boolean; showInstrumentSubCategories: boolean;
showPortfolio: boolean; showPortfolio: boolean;
showTime2Learn: boolean;
showEHB: boolean; showEHB: boolean;
helloIllustration: string; helloIllustration: string;
showModuleFilter: boolean; showModuleFilter: boolean;