[Explore | Trunk]: Add header on app component
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59592 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
95261ee394
commit
37813a6519
|
@ -9,16 +9,14 @@ import {Session, User} from './openaireLibrary/login/utils/helper.class';
|
||||||
import {HelperFunctions} from "./openaireLibrary/utils/HelperFunctions.class";
|
import {HelperFunctions} from "./openaireLibrary/utils/HelperFunctions.class";
|
||||||
import {UserManagementService} from "./openaireLibrary/services/user-management.service";
|
import {UserManagementService} from "./openaireLibrary/services/user-management.service";
|
||||||
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
|
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
|
||||||
|
import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
//changeDetection: ChangeDetectionStrategy.Default,
|
//changeDetection: ChangeDetectionStrategy.Default,
|
||||||
//encapsulation: ViewEncapsulation.Emulated,
|
//encapsulation: ViewEncapsulation.Emulated,
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
styles: [`
|
|
||||||
`],
|
|
||||||
template: `
|
template: `
|
||||||
|
<navbar *ngIf="properties && header" [header]="header" [portal]="properties.dashboard" [properties]=properties [onlyTop]=false [user]="user"
|
||||||
<navbar *ngIf="properties" [portal]="properties.dashboard" [properties]=properties [onlyTop]=false [user]="user"
|
|
||||||
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
|
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
|
||||||
<schema2jsonld *ngIf="properties" [URL]="properties.domain+properties.baseLink"
|
<schema2jsonld *ngIf="properties" [URL]="properties.domain+properties.baseLink"
|
||||||
[logoURL]="properties.domain+properties.baseLink+'/assets/common-assets/logo-small-explore.png'" type="home"
|
[logoURL]="properties.domain+properties.baseLink+'/assets/common-assets/logo-small-explore.png'" type="home"
|
||||||
|
@ -56,6 +54,8 @@ export class AppComponent {
|
||||||
feedbackmail: string;
|
feedbackmail: string;
|
||||||
properties: EnvProperties;
|
properties: EnvProperties;
|
||||||
user: User;
|
user: User;
|
||||||
|
header: Header;
|
||||||
|
logoPath: string = 'assets/common-assets/';
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService,
|
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService,
|
||||||
private router: Router, private userManagementService: UserManagementService,
|
private router: Router, private userManagementService: UserManagementService,
|
||||||
|
@ -87,6 +87,15 @@ export class AppComponent {
|
||||||
this.userManagementService.getUserInfo().subscribe(user => {
|
this.userManagementService.getUserInfo().subscribe(user => {
|
||||||
this.user = user;
|
this.user = user;
|
||||||
this.buildMenu();
|
this.buildMenu();
|
||||||
|
this.header = {
|
||||||
|
route: "/",
|
||||||
|
url: null,
|
||||||
|
title: 'explore',
|
||||||
|
logoUrl: this.logoPath + 'logo-large-explore.png',
|
||||||
|
logoSmallUrl:this.logoPath + 'logo-small-explore.png',
|
||||||
|
position:'left',
|
||||||
|
badge:true
|
||||||
|
};
|
||||||
});
|
});
|
||||||
//console.log(this.properties.loginUrl);
|
//console.log(this.properties.loginUrl);
|
||||||
}, error => {
|
}, error => {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -151,6 +151,7 @@ export class HomeComponent {
|
||||||
selectedEntityAdvancedUrl;
|
selectedEntityAdvancedUrl;
|
||||||
resultTypes = {publication:true, dataset:true, software:true, other:true};
|
resultTypes = {publication:true, dataset:true, software:true, other:true};
|
||||||
public pageContents = null;
|
public pageContents = null;
|
||||||
|
useHelpText: boolean = true;
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|
Loading…
Reference in New Issue