tweaks for navbar (featured menu items)
This commit is contained in:
parent
cffe3053ce
commit
beb21be4a0
|
@ -6,7 +6,7 @@ export class ConnectHelper {
|
||||||
|
|
||||||
public static getCommunityFromDomain(domain: string): string{
|
public static getCommunityFromDomain(domain: string): string{
|
||||||
if(properties.environment == "development") {
|
if(properties.environment == "development") {
|
||||||
// domain = "covid-19.openaire.eu"; //for testing
|
domain = "covid-19.openaire.eu"; //for testing
|
||||||
}
|
}
|
||||||
domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix
|
domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix
|
||||||
if (domain.indexOf('eosc-portal.eu') != -1) {
|
if (domain.indexOf('eosc-portal.eu') != -1) {
|
||||||
|
|
|
@ -235,28 +235,33 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- New navbar for featured menu items - test only -->
|
<!-- New navbar for featured menu items - test only -->
|
||||||
<!-- <ng-container *ngIf="featuredMenuItems?.length > 0 && properties.environment == 'development'">
|
<ng-container *ngIf="featuredMenuItems?.length > 0 && properties.environment == 'development'">
|
||||||
<div class="featuredNavBar">
|
<div class="uk-background-primary uk-light">
|
||||||
<ul>
|
<div class="uk-container uk-container-expand">
|
||||||
<ng-container *ngFor="let item of featuredMenuItems">
|
<div class="uk-navbar" uk-navbar>
|
||||||
<li>
|
<div class="uk-navbar-right">
|
||||||
<a *ngIf="item.type == 'internal' && item.route && isEnabled([item.route], showPage)"
|
<ul class="uk-navbar-nav">
|
||||||
routerLink="{{item.route}}"
|
<ng-container *ngFor="let item of featuredMenuItems">
|
||||||
[queryParams]="item.params"
|
<li [class.uk-active]="isTheActiveMenu(item)">
|
||||||
[fragment]="item.fragment"
|
<a *ngIf="item.type == 'internal' && item.route && isEnabled([item.route], showPage)"
|
||||||
[class.uk-active]="isTheActiveMenu(item)">
|
routerLink="{{item.route}}"
|
||||||
{{item.title}}
|
[queryParams]="item.params"
|
||||||
</a>
|
[fragment]="item.fragment">
|
||||||
<a *ngIf="item.type == 'external' && item.url"
|
{{item.title}}
|
||||||
href="{{item.url}}" class="custom-external"
|
</a>
|
||||||
target="_blank">
|
<a *ngIf="item.type == 'external' && item.url"
|
||||||
{{item.title}}
|
href="{{item.url}}" class="custom-external"
|
||||||
</a>
|
target="_blank">
|
||||||
</li>
|
{{item.title}}
|
||||||
</ng-container>
|
</a>
|
||||||
</ul>
|
</li>
|
||||||
</div>
|
</ng-container>
|
||||||
</ng-container> -->
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</ng-container>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ng-template #header_template let-mobile="mobile">
|
<ng-template #header_template let-mobile="mobile">
|
||||||
|
|
|
@ -124,7 +124,8 @@ export class NavigationBarComponent implements OnInit, OnDestroy {
|
||||||
if(menuItem.isFeatured) {
|
if(menuItem.isFeatured) {
|
||||||
this.featuredMenuItems.push(menuItem);
|
this.featuredMenuItems.push(menuItem);
|
||||||
} else {
|
} else {
|
||||||
this.additionalMenuItems.push(menuItem);
|
// disable additional menu items for now
|
||||||
|
// this.additionalMenuItems.push(menuItem);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue