X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-FE-common%2Fsrc%2Fapp%2Flayout%2Fcomponents%2Fheader%2Fheader.component.ts;h=09dd4c1a1f227227ceac54ebb5d9a8f8ce28dc39;hb=096d3ac4c7b98f98eb20978cf1f07ff5cc91d492;hp=cb6bdd31e22f6ac3208d34d855c7b2d78aec2568;hpb=099ece77f49e4a6bc4d9b35ef03a5e0f33bf8384;p=portal.git diff --git a/portal-FE-common/src/app/layout/components/header/header.component.ts b/portal-FE-common/src/app/layout/components/header/header.component.ts index cb6bdd31..09dd4c1a 100644 --- a/portal-FE-common/src/app/layout/components/header/header.component.ts +++ b/portal-FE-common/src/app/layout/components/header/header.component.ts @@ -39,6 +39,7 @@ import { Component, OnInit } from '@angular/core'; import { Router, NavigationEnd } from '@angular/router'; import { UserProfileService, MenusService } from 'src/app/shared/services'; import { CookieService } from 'ngx-cookie-service'; +import { environment } from 'src/environments/environment'; @Component({ selector: 'app-header', @@ -55,6 +56,9 @@ export class HeaderComponent implements OnInit { userapproles: any[]; displayUserAppRoles: any; isLoading: boolean; + api = environment.api; + brandName: string; + brandLogoImagePath: string; constructor(public router: Router, private userProfileService: UserProfileService, private menusService: MenusService, private cookieService: CookieService) { @@ -72,6 +76,16 @@ export class HeaderComponent implements OnInit { ngOnInit() { this.pushRightClass = 'push-right'; this.getUserInformation(); + + this.brandName = "ONAP Portal"; + if(this.api.brandName != ''){ + this.brandName = this.api.brandName; + } + + this.brandLogoImagePath = "assets/images/global.logo"; + if(this.api.brandLogoImagePath != ''){ + this.brandLogoImagePath = this.api.brandLogoImagePath; + } } getUserInformation() {