Add flavor for showModuleFilters

This commit is contained in:
Lorenz Padberg 2023-08-30 14:33:54 +02:00
parent 020c4846c4
commit d059a4d82a
5 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,7 @@
{{ module.metaTitle }}
</h2>
<div class="module__categoryindicators">
<div class="module__categoryindicators" v-if="$flavor.showModuleFilter">
<pill :text="module.level?.name"></pill>
<pill :text="module.category?.name"></pill>
</div>

View File

@ -1,6 +1,6 @@
<template>
<div class="module-filter">
<div class="module-filter__filter-selection">
<div class="module-filter__filter-selection" v-if="$flavor.showModuleFilter">
<Dropdown
class="module-filter__dropdown"
:selected-item="selectedLevel"

View File

@ -15,7 +15,7 @@
<p class="module-teaser__description">
{{ teaser }}
</p>
<div class="module-teaser__pills">
<div class="module-teaser__pills" v-if="$flavor.showModuleFilter">
<pill :text="level?.name"></pill>
<pill :text="category?.name"></pill>
</div>

View File

@ -24,6 +24,7 @@ export const defaultFlavorValues: FlavorValues = {
showPortfolio: true,
showEHB: true,
helloIllustration: 'HelloIllustration',
showModuleFilter: false,
};
export const myKvValues: FlavorValues = {
@ -50,6 +51,7 @@ export const myKvValues: FlavorValues = {
showInstrumentSubCategories: false,
showEHB: false,
helloIllustration: 'HelloMyKVIllustration',
showModuleFilter: true,
};
export const dhaValues: FlavorValues = Object.assign({}, myKvValues, {

View File

@ -18,4 +18,5 @@ export interface FlavorValues {
showPortfolio: boolean;
showEHB: boolean;
helloIllustration: string;
showModuleFilter: boolean;
}