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"
@click="closeSidebar('navigation')"
>
{{ topic.order }}.
<span v-if="$flavor.showTopicNavigationNumbering">{{ topic.order }}.</span>
{{ topic.title }}
</router-link>
</nav>

View File

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

View File

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