Add feature flag for language filter in client

Resolves MS-786 #complete
This commit is contained in:
Ramon Wenger 2023-08-30 22:16:12 +02:00
parent 1c99ab9f42
commit b3ced207cc
3 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,10 @@
/> />
<search-magnifying-glass class="filter-bar__search-icon"></search-magnifying-glass> <search-magnifying-glass class="filter-bar__search-icon"></search-magnifying-glass>
</div> </div>
<language-switcher class="filter-bar__language-selection" /> <language-switcher
class="filter-bar__language-selection"
v-if="$flavor.showLanguageFilter"
/>
</div> </div>
</template> </template>

View File

@ -25,6 +25,7 @@ export const defaultFlavorValues: FlavorValues = {
showEHB: true, showEHB: true,
helloIllustration: 'HelloIllustration', helloIllustration: 'HelloIllustration',
showModuleFilter: false, showModuleFilter: false,
showLanguageFilter: false,
}; };
export const myKvValues: FlavorValues = { export const myKvValues: FlavorValues = {
@ -52,6 +53,7 @@ export const myKvValues: FlavorValues = {
showEHB: false, showEHB: false,
helloIllustration: 'HelloMyKVIllustration', helloIllustration: 'HelloMyKVIllustration',
showModuleFilter: true, showModuleFilter: true,
showLanguageFilter: false,
}; };
export const dhaValues: FlavorValues = Object.assign({}, myKvValues, { export const dhaValues: FlavorValues = Object.assign({}, myKvValues, {

View File

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