[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 {UserManagementService} from "./openaireLibrary/services/user-management.service";
|
||||
import {ConfigurationService} from "./openaireLibrary/utils/configuration/configuration.service";
|
||||
import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component";
|
||||
|
||||
@Component({
|
||||
//changeDetection: ChangeDetectionStrategy.Default,
|
||||
//encapsulation: ViewEncapsulation.Emulated,
|
||||
selector: 'app-root',
|
||||
styles: [`
|
||||
`],
|
||||
template: `
|
||||
|
||||
<navbar *ngIf="properties" [portal]="properties.dashboard" [properties]=properties [onlyTop]=false [user]="user"
|
||||
<navbar *ngIf="properties && header" [header]="header" [portal]="properties.dashboard" [properties]=properties [onlyTop]=false [user]="user"
|
||||
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
|
||||
<schema2jsonld *ngIf="properties" [URL]="properties.domain+properties.baseLink"
|
||||
[logoURL]="properties.domain+properties.baseLink+'/assets/common-assets/logo-small-explore.png'" type="home"
|
||||
|
@ -56,6 +54,8 @@ export class AppComponent {
|
|||
feedbackmail: string;
|
||||
properties: EnvProperties;
|
||||
user: User;
|
||||
header: Header;
|
||||
logoPath: string = 'assets/common-assets/';
|
||||
|
||||
constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService,
|
||||
private router: Router, private userManagementService: UserManagementService,
|
||||
|
@ -87,6 +87,15 @@ export class AppComponent {
|
|||
this.userManagementService.getUserInfo().subscribe(user => {
|
||||
this.user = user;
|
||||
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);
|
||||
}, error => {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -151,6 +151,7 @@ export class HomeComponent {
|
|||
selectedEntityAdvancedUrl;
|
||||
resultTypes = {publication:true, dataset:true, software:true, other:true};
|
||||
public pageContents = null;
|
||||
useHelpText: boolean = true;
|
||||
|
||||
constructor (
|
||||
private route: ActivatedRoute,
|
||||
|
|
Loading…
Reference in New Issue