diff --git a/app/coffee/app.coffee b/app/coffee/app.coffee index ddb0f0b29..758b892a5 100644 --- a/app/coffee/app.coffee +++ b/app/coffee/app.coffee @@ -1038,6 +1038,10 @@ init = ($log, $rootscope, $auth, $events, $analytics, $tagManager, $userPilot, $ navigationBarService.disableHeader() else navigationBarService.enableHeader() + + # Whether or not to show the superfluous section titles on page + # Default to true if config doesn't exist + $rootscope.showSectionTitles = $tgConfig.get("showSectionTitles", true) # Config for infinite scroll angular.module('infinite-scroll').value('THROTTLE_MILLISECONDS', 500) diff --git a/app/partials/includes/components/mainTitle.jade b/app/partials/includes/components/mainTitle.jade index 98fec48bf..59553fc0e 100644 --- a/app/partials/includes/components/mainTitle.jade +++ b/app/partials/includes/components/mainTitle.jade @@ -5,8 +5,9 @@ //- //- Copyright (c) 2021-present Kaleidos INC -header - h1( - tg-main-title - i18n-section-name="{{ sectionName }}" - ) +div(ng-if="showSectionTitles") + header + h1( + tg-main-title + i18n-section-name="{{ sectionName }}" + ) \ No newline at end of file diff --git a/conf/conf.example.json b/conf/conf.example.json index be34ee9ba..bd77bc0c9 100644 --- a/conf/conf.example.json +++ b/conf/conf.example.json @@ -33,5 +33,6 @@ "ar", "fa", "he" - ] + ], + "showSectionTitles": true }