[Library|Trunk]

navigation bar:
	add logo url also in big beta indication badge to fix z-index issue


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58582 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-04-30 12:26:25 +00:00
parent 97fdeb38c2
commit 1aa854b72a
2 changed files with 21 additions and 1 deletions

View File

@ -1,9 +1,10 @@
<div *ngIf="showMenu">
<div *ngIf="properties.environment =='beta' || properties.environment =='development'"
class="uk-visible@m" >
<img class="large-beta-indication"
<a [routerLink]="logoRoute" [href]="logoUrl"><img class="large-beta-indication"
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
alt="BETA">
</a>
</div>
<div class="tm-header-mobile uk-hidden@m">
<nav class="uk-navbar-container uk-navbar" uk-navbar="">

View File

@ -29,6 +29,11 @@ export class NavigationBarComponent {
@Input() searchPlaceHolder: string = "Search for research results";
keyword: string = "";
logosrc: string = "";
logoUrl:string;
logoRoute:string;
logoName:string;
public isAuthorized: boolean = false;
sub: any;
@ -73,6 +78,20 @@ export class NavigationBarComponent {
this.handleError("Error getting community information (e.g. pages,entities) for community with id: " + this.communityId, error);
});
}
if(!this.community){
this.logosrc = this.logoPath + "logo-large-"+this.portal+".png";
this.logoRoute = "/";
this.logoName = "OpenAIRE";
}else if( this.community){
this.logosrc = this.community.logoUrl;
if(this.homeurl){
this.logoRoute = "/";
}else{
this.logoUrl = 'https://'+(this.properties.environment =='beta'?'beta.':'')+this.community.id+'.openaire.eu';
}
this.logoName = this.community.name;
}
}