[Explore|Trunk]
pass properties as parameter in services in order to use cache add properties parameter in navbar/bottom and clean up other attributes git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@55999 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
553b9a0356
commit
ff7716ecfe
|
@ -17,10 +17,8 @@ import {HelperFunctions} from "./openaireLibrary/utils/HelperFunctions.class";
|
||||||
`],
|
`],
|
||||||
template: `
|
template: `
|
||||||
|
|
||||||
<navbar *ngIf="properties" portal="explore" [environment]=properties.environment [onlyTop]=false
|
<navbar *ngIf="properties" portal="explore" [properties]=properties [onlyTop]=false
|
||||||
[(communityId)]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems
|
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
|
||||||
[(APIUrl)]="properties.adminToolsAPIURL" [(logInUrl)]="properties.loginUrl"
|
|
||||||
[(logOutUrl)]="properties.logoutUrl" [(cookieDomain)]="properties.cookieDomain"></navbar>
|
|
||||||
<div class="custom-main-content">
|
<div class="custom-main-content">
|
||||||
<main>
|
<main>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
|
@ -37,7 +35,7 @@ import {HelperFunctions} from "./openaireLibrary/utils/HelperFunctions.class";
|
||||||
ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg>
|
ratio="1"><polyline fill="none" stroke="#000" stroke-width="1.03" points="7 4 13 10 7 16"></polyline></svg>
|
||||||
</span></a>
|
</span></a>
|
||||||
</cookie-law>
|
</cookie-law>
|
||||||
<bottom *ngIf="isClient && properties" [environment]=properties.environment></bottom>
|
<bottom *ngIf="isClient && properties" [properties]="properties" ></bottom>
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
|
||||||
this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE").subscribe();
|
this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE").subscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.config.getCommunityInformation(this.properties.adminToolsAPIURL, this.properties.adminToolsCommunity ).subscribe(data => {
|
this.config.getCommunityInformation(this.properties, this.properties.adminToolsCommunity ).subscribe(data => {
|
||||||
var showEntity = {};
|
var showEntity = {};
|
||||||
for(var i=0; i< data['entities'].length; i++){
|
for(var i=0; i< data['entities'].length; i++){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue