Add feature flag to show intrument Subcategories
This commit is contained in:
parent
ce645001a1
commit
cf36184e1c
|
|
@ -11,19 +11,15 @@
|
||||||
<SearchMagnifyingGlass class="filter-bar__search-icon"></SearchMagnifyingGlass>
|
<SearchMagnifyingGlass class="filter-bar__search-icon"></SearchMagnifyingGlass>
|
||||||
<!-- Font Awesome search icon as an example -->
|
<!-- Font Awesome search icon as an example -->
|
||||||
</div>
|
</div>
|
||||||
<pill-radio-buttons
|
<language-switcher class="filter-bar__language-selection"/>
|
||||||
:selectableItems="languageOptions"
|
|
||||||
:defaultSelectedItem="initialLanguage"
|
|
||||||
class="filter-bar__language-selection"
|
|
||||||
@update:selectedItem="(item) => (selectedLanguage = item)"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
import PillRadioButtons from '@/components/ui/PillRadioButtons.vue';
|
|
||||||
import SearchMagnifyingGlass from '@/components/icons/SearchMagnifyingGlass.vue';
|
import SearchMagnifyingGlass from '@/components/icons/SearchMagnifyingGlass.vue';
|
||||||
|
import LanguageSwitcher from "@/components/LanguageSwitcher.vue";
|
||||||
|
|
||||||
const searchQuery = ref('');
|
const searchQuery = ref('');
|
||||||
const emit = defineEmits(['update:filter']);
|
const emit = defineEmits(['update:filter']);
|
||||||
|
|
@ -31,14 +27,6 @@ const emit = defineEmits(['update:filter']);
|
||||||
const updateSearch = () => {
|
const updateSearch = () => {
|
||||||
emit('update:filter', searchQuery.value);
|
emit('update:filter', searchQuery.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
const languageOptions: Array<{ id: number; label: string }> = ref([
|
|
||||||
{ id: 1, label: 'De' },
|
|
||||||
{ id: 2, label: 'Fr' },
|
|
||||||
{ id: 3, label: 'En' },
|
|
||||||
]);
|
|
||||||
|
|
||||||
const initialLanguage = languageOptions.value[0];
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
:id="category.id"
|
:id="category.id"
|
||||||
@filter="setCategoryFilter(category.id)"
|
@filter="setCategoryFilter(category.id)"
|
||||||
/>
|
/>
|
||||||
<div class="filter-group__children">
|
<div class="filter-group__children" v-if="$flavor.showInstrumentSubCategories">
|
||||||
<filter-entry
|
<filter-entry
|
||||||
:data-cy="`filter-${type.type}`"
|
:data-cy="`filter-${type.type}`"
|
||||||
:category="type.category"
|
:category="type.category"
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ export const defaultFlavorValues: FlavorValues = {
|
||||||
showFooter: true,
|
showFooter: true,
|
||||||
showObjectivesTitle: true,
|
showObjectivesTitle: true,
|
||||||
showInstrumentFilterSidebar: true,
|
showInstrumentFilterSidebar: true,
|
||||||
|
showInstrumentSubCategories: true,
|
||||||
showPortfolio: true,
|
showPortfolio: true,
|
||||||
showEHB: true,
|
showEHB: true,
|
||||||
helloIllustration: 'HelloIllustration',
|
helloIllustration: 'HelloIllustration',
|
||||||
|
|
@ -46,6 +47,7 @@ export const myKvValues: FlavorValues = {
|
||||||
showObjectivesTitle: false,
|
showObjectivesTitle: false,
|
||||||
showInstrumentFilterSidebar: true,
|
showInstrumentFilterSidebar: true,
|
||||||
showPortfolio: true,
|
showPortfolio: true,
|
||||||
|
showInstrumentSubCategories: false,
|
||||||
showEHB: false,
|
showEHB: false,
|
||||||
helloIllustration: 'HelloMyKVIllustration',
|
helloIllustration: 'HelloMyKVIllustration',
|
||||||
};
|
};
|
||||||
|
|
@ -57,6 +59,7 @@ export const dhaValues: FlavorValues = Object.assign({}, myKvValues, {
|
||||||
appLogo: 'https://skillbox-my-detailhandel-dha-prod.s3.eu-central-1.amazonaws.com/myDHA-logo.png',
|
appLogo: 'https://skillbox-my-detailhandel-dha-prod.s3.eu-central-1.amazonaws.com/myDHA-logo.png',
|
||||||
textAppName: 'myDHA',
|
textAppName: 'myDHA',
|
||||||
helloIllustration: 'HelloMyDHAIllustration',
|
helloIllustration: 'HelloMyDHAIllustration',
|
||||||
|
showInstrumentSubCategories: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
export const dhfValues: FlavorValues = Object.assign({}, myKvValues, {
|
export const dhfValues: FlavorValues = Object.assign({}, myKvValues, {
|
||||||
|
|
@ -66,4 +69,5 @@ export const dhfValues: FlavorValues = Object.assign({}, myKvValues, {
|
||||||
appLogo: 'https://skillbox-my-detailhandel-dhf-prod.s3.eu-central-1.amazonaws.com/myDHF-logo.png',
|
appLogo: 'https://skillbox-my-detailhandel-dhf-prod.s3.eu-central-1.amazonaws.com/myDHF-logo.png',
|
||||||
textAppName: 'myDHF',
|
textAppName: 'myDHF',
|
||||||
helloIllustration: 'HelloMyDHFIllustration',
|
helloIllustration: 'HelloMyDHFIllustration',
|
||||||
|
showInstrumentSubCategories: false,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ export interface FlavorValues {
|
||||||
showFooter: boolean;
|
showFooter: boolean;
|
||||||
showObjectivesTitle: boolean;
|
showObjectivesTitle: boolean;
|
||||||
showInstrumentFilterSidebar: boolean;
|
showInstrumentFilterSidebar: boolean;
|
||||||
|
showInstrumentSubCategories: boolean;
|
||||||
showPortfolio: boolean;
|
showPortfolio: boolean;
|
||||||
showEHB: boolean;
|
showEHB: boolean;
|
||||||
helloIllustration: string;
|
helloIllustration: string;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue