Add App flavor to show topic numbering.

This commit is contained in:
Lorenz Padberg 2023-09-04 11:41:56 +02:00
parent 6fff84127c
commit 0f82134c81
3 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,7 @@
:key="topic.id" :key="topic.id"
@click="closeSidebar('navigation')" @click="closeSidebar('navigation')"
> >
{{ topic.order }}. <span v-if="$flavor.showTopicNavigationNumbering">{{ topic.order }}.</span>
{{ topic.title }} {{ topic.title }}
</router-link> </router-link>
</nav> </nav>

View File

@ -26,6 +26,7 @@ export const defaultFlavorValues: FlavorValues = {
helloIllustration: 'HelloIllustration', helloIllustration: 'HelloIllustration',
showModuleFilter: false, showModuleFilter: false,
showLanguageFilter: false, showLanguageFilter: false,
showTopicNavigationNumbering: true,
}; };
export const myKvValues: FlavorValues = { export const myKvValues: FlavorValues = {
@ -54,6 +55,7 @@ export const myKvValues: FlavorValues = {
helloIllustration: 'HelloMyKVIllustration', helloIllustration: 'HelloMyKVIllustration',
showModuleFilter: true, showModuleFilter: true,
showLanguageFilter: true, showLanguageFilter: true,
showTopicNavigationNumbering: false,
}; };
export const dhaValues: FlavorValues = Object.assign({}, myKvValues, { export const dhaValues: FlavorValues = Object.assign({}, myKvValues, {

View File

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