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 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: {
@ -148,6 +164,7 @@ export default {
&__link { &__link {
padding: 0 24px; padding: 0 24px;
@include navigation-link; @include navigation-link;
white-space: nowrap;
} }
&__primary, &__primary,
@ -169,8 +186,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: true,
showEHB: true, showEHB: true,
helloIllustration: 'HelloIllustration', helloIllustration: 'HelloIllustration',
showModuleFilter: false, showModuleFilter: false,
@ -66,6 +67,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 +78,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;