Merged in feature/MS-909-time2learnlink (pull request #151)

Feature/MS-909 time2learnlink

Approved-by: Ramon Wenger
This commit is contained in:
Lorenz Padberg 2024-05-02 07:27:34 +00:00
commit 1b8680ee11
3 changed files with 24 additions and 2 deletions

View File

@ -78,6 +78,19 @@
Portfolio
</router-link>
</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
class="content-navigation__item content-navigation__item--secondary"
v-if="isSidebar"
@ -121,6 +134,9 @@ export default {
showPortfolio() {
return this.$flavor.showPortfolio;
},
showTime2Learn() {
return this.$flavor.showTime2Learn;
},
},
methods: {
@ -148,6 +164,7 @@ export default {
&__link {
padding: 0 24px;
@include navigation-link;
white-space: nowrap;
}
&__primary,
@ -169,8 +186,8 @@ export default {
justify-self: center;
/*
* For IE10+
*/
* For IE10+
*/
-ms-grid-column: 2;
-ms-grid-row-align: center;
-ms-grid-column-align: center;

View File

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

View File

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