Add time2learn link configurable with flavor
This commit is contained in:
parent
41d8e973e8
commit
cc3b6a9c37
|
|
@ -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: {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ export const defaultFlavorValues: FlavorValues = {
|
|||
showInstrumentFilterSidebar: true,
|
||||
showInstrumentSubCategories: true,
|
||||
showPortfolio: true,
|
||||
showTime2Learn: false,
|
||||
showEHB: true,
|
||||
helloIllustration: 'HelloIllustration',
|
||||
showModuleFilter: false,
|
||||
|
|
@ -50,6 +51,7 @@ export const myKvValues: FlavorValues = {
|
|||
showObjectivesTitle: false,
|
||||
showInstrumentFilterSidebar: true,
|
||||
showPortfolio: true,
|
||||
showTime2Learn: true,
|
||||
showInstrumentSubCategories: false,
|
||||
showEHB: false,
|
||||
helloIllustration: 'HelloMyKVIllustration',
|
||||
|
|
@ -66,6 +68,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 +79,6 @@ export const dhfValues: FlavorValues = Object.assign({}, myKvValues, {
|
|||
textAppName: 'myDHF',
|
||||
helloIllustration: 'HelloMyDHFIllustration',
|
||||
showLanguageFilter: false,
|
||||
showTime2Learn: true,
|
||||
|
||||
});
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ export interface FlavorValues {
|
|||
showInstrumentFilterSidebar: boolean;
|
||||
showInstrumentSubCategories: boolean;
|
||||
showPortfolio: boolean;
|
||||
showTime2Learn: boolean;
|
||||
showEHB: boolean;
|
||||
helloIllustration: string;
|
||||
showModuleFilter: boolean;
|
||||
|
|
|
|||
Loading…
Reference in New Issue