diff --git a/src/app/app.component.html b/src/app/app.component.html index e234aa5..bdb1df9 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,4 +1,4 @@ -
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index d208ee5..0d18533 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -4,6 +4,7 @@ import {EnvProperties} from './openaireLibrary/utils/properties/env-properties'; import {User} from './openaireLibrary/login/utils/helper.class'; import {properties} from '../environments/environment'; import {LayoutService} from './services/layout.service'; +import {Header} from './openaireLibrary/sharedComponents/navigationBar.component'; @Component({ selector: 'app', @@ -20,6 +21,8 @@ export class AppComponent implements OnInit { showMenu: boolean = false; user: User; isHome: boolean; + header: Header; + logoPath: string = 'assets/common-assets/'; constructor(private layoutService: LayoutService) {} @@ -29,6 +32,15 @@ export class AppComponent implements OnInit { this.showMenu = true; this.layoutService.isHome.subscribe(isHome => { this.isHome = isHome + this.header = { + route: "/", + url: null, + title: 'usage-counts', + logoUrl: this.logoPath + 'logo-large-usage-counts.png', + logoSmallUrl:this.logoPath + 'logo-small-usage-counts.png', + position:'left', + badge:true + }; this.buildMenu(isHome); }); } diff --git a/src/app/services/layout.service.ts b/src/app/services/layout.service.ts index 6d4b4fd..8cfbf65 100644 --- a/src/app/services/layout.service.ts +++ b/src/app/services/layout.service.ts @@ -7,7 +7,7 @@ import {BehaviorSubject, Observable} from 'rxjs'; }) export class LayoutService { - private isHomeSubject: BehaviorSubject = new BehaviorSubject(false); + private isHomeSubject: BehaviorSubject = new BehaviorSubject(true); constructor(private router: Router) { this.router.events.subscribe(event => {