diff --git a/sharedComponents/navigationBar.component.ts b/sharedComponents/navigationBar.component.ts index bea02d15..e158885e 100644 --- a/sharedComponents/navigationBar.component.ts +++ b/sharedComponents/navigationBar.component.ts @@ -33,7 +33,6 @@ export class NavigationBarComponent implements OnInit, OnDestroy{ @Input() showCommunityName: boolean = false; @Input() userMenuItems: MenuItem[]; @Input() menuItems: RootMenuItem []; - @Input() community: { id: string, name: string, logoUrl: string }; @Input() header: Header; @Input() showMenu: boolean = true; @Input() homeurl: boolean = true; @@ -81,7 +80,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy{ } initialize() { - if ((['explore', 'connect', 'monitor', 'provide', 'develop', 'usage-counts', 'graph']).indexOf(this.portal) != -1) { + if ((['explore', 'monitor', 'provide', 'develop', 'usage-counts', 'graph']).indexOf(this.portal) != -1) { this.header = { route: '/', url: null, @@ -91,16 +90,6 @@ export class NavigationBarComponent implements OnInit, OnDestroy{ position: 'left', badge: true }; - } else if (this.community) { - this.header = { - route: (this.homeurl ? '/' : null), - url: (!this.homeurl ? 'https://' + (this.properties.environment == 'beta' ? 'beta.' : '') + this.community.id + '.openaire.eu' : null), - title: this.community.name, - logoUrl: this.community.logoUrl, - logoSmallUrl: this.community.logoUrl, - position: 'left', - badge: true - }; } else if (this.stakeholder) { this.header = { route: '', @@ -132,21 +121,6 @@ export class NavigationBarComponent implements OnInit, OnDestroy{ 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; - } - } onClick(id: string) {