Skip to content

Commit 44933e6

Browse files
author
Maciej Kleban
committed
Move showTopFooter to appConfig
1 parent 9607cb5 commit 44933e6

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

src/app/footer/footer.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class FooterComponent implements OnInit {
7373
this.showEndUserAgreement = this.appConfig.info.enableEndUserAgreement;
7474
this.coarLdnEnabled$ = this.appConfig.info.enableCOARNotifySupport ? this.notifyInfoService.isCoarConfigEnabled() : of(false);
7575
this.showSendFeedback$ = this.authorizationService.isAuthorized(FeatureID.CanSendFeedback);
76+
this.showTopFooter = this.appConfig.homePage.showTopFooter;
7677

7778
this.footerMetadataValue$ = combineLatest({
7879
site$: this.siteService.find().pipe(

src/config/default-app-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ export class DefaultAppConfig implements AppConfig {
359359
};
360360

361361
homePage: HomeConfig = {
362+
showTopFooter: false,
362363
recentSubmissions: {
363364
//The number of item showing in recent submission components
364365
pageSize: 5,

src/config/homepage-config.interface.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { Config } from './config.interface';
44
* Config that determines how the recentSubmissions list showing at home page
55
*/
66
export interface HomeConfig extends Config {
7+
/**
8+
* A boolean representing if to show or not the top footer container
9+
*/
10+
showTopFooter: boolean;
11+
712
recentSubmissions: {
813
/**
914
* The number of item showing in recent submission components

0 commit comments

Comments
 (0)