From 0f82134c8173fe80a1e9f2e747d275e9ea19c338 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Mon, 4 Sep 2023 11:41:56 +0200 Subject: [PATCH] Add App flavor to show topic numbering. --- client/src/components/book-navigation/TopicNavigation.vue | 2 +- client/src/helpers/app-flavor.constants.ts | 2 ++ client/src/helpers/types.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/components/book-navigation/TopicNavigation.vue b/client/src/components/book-navigation/TopicNavigation.vue index 289f3f6c..01226311 100644 --- a/client/src/components/book-navigation/TopicNavigation.vue +++ b/client/src/components/book-navigation/TopicNavigation.vue @@ -10,7 +10,7 @@ :key="topic.id" @click="closeSidebar('navigation')" > - {{ topic.order }}. + {{ topic.order }}. {{ topic.title }} diff --git a/client/src/helpers/app-flavor.constants.ts b/client/src/helpers/app-flavor.constants.ts index 60a2a444..1de18506 100644 --- a/client/src/helpers/app-flavor.constants.ts +++ b/client/src/helpers/app-flavor.constants.ts @@ -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, { diff --git a/client/src/helpers/types.ts b/client/src/helpers/types.ts index 9b9fa822..43e4f031 100644 --- a/client/src/helpers/types.ts +++ b/client/src/helpers/types.ts @@ -20,4 +20,5 @@ export interface FlavorValues { helloIllustration: string; showModuleFilter: boolean; showLanguageFilter: boolean; + showTopicNavigationNumbering: boolean; }