[Library | Trunk]: Remove community from navigation bar

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59588 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2020-10-14 10:13:33 +00:00
parent fb84b102c0
commit f7beca6a6e
1 changed files with 1 additions and 27 deletions

View File

@ -33,7 +33,6 @@ export class NavigationBarComponent implements OnInit, OnDestroy{
@Input() showCommunityName: boolean = false; @Input() showCommunityName: boolean = false;
@Input() userMenuItems: MenuItem[]; @Input() userMenuItems: MenuItem[];
@Input() menuItems: RootMenuItem []; @Input() menuItems: RootMenuItem [];
@Input() community: { id: string, name: string, logoUrl: string };
@Input() header: Header; @Input() header: Header;
@Input() showMenu: boolean = true; @Input() showMenu: boolean = true;
@Input() homeurl: boolean = true; @Input() homeurl: boolean = true;
@ -81,7 +80,7 @@ export class NavigationBarComponent implements OnInit, OnDestroy{
} }
initialize() { 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 = { this.header = {
route: '/', route: '/',
url: null, url: null,
@ -91,16 +90,6 @@ export class NavigationBarComponent implements OnInit, OnDestroy{
position: 'left', position: 'left',
badge: true 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) { } else if (this.stakeholder) {
this.header = { this.header = {
route: '', 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); 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) { onClick(id: string) {