[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:
argiro.kokogiannaki 2019-06-05 14:31:43 +00:00
parent 553b9a0356
commit ff7716ecfe
2 changed files with 4 additions and 6 deletions

View File

@ -17,10 +17,8 @@ import {HelperFunctions} from "./openaireLibrary/utils/HelperFunctions.class";
`],
template: `
<navbar *ngIf="properties" portal="explore" [environment]=properties.environment [onlyTop]=false
[(communityId)]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems
[(APIUrl)]="properties.adminToolsAPIURL" [(logInUrl)]="properties.loginUrl"
[(logOutUrl)]="properties.logoutUrl" [(cookieDomain)]="properties.cookieDomain"></navbar>
<navbar *ngIf="properties" portal="explore" [properties]=properties [onlyTop]=false
[communityId]="properties.adminToolsCommunity" [userMenuItems]=userMenuItems [menuItems]=menuItems></navbar>
<div class="custom-main-content">
<main>
<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>
</span></a>
</cookie-law>
<bottom *ngIf="isClient && properties" [environment]=properties.environment></bottom>
<bottom *ngIf="isClient && properties" [properties]="properties" ></bottom>
`

View File

@ -90,7 +90,7 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
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 = {};
for(var i=0; i< data['entities'].length; i++){