1. Pass argument of type: EnvProperties in connect services (used for cache).

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51661 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2018-04-04 14:02:53 +00:00
parent a982c6b235
commit 99afee5cc6
4 changed files with 5 additions and 4 deletions

View File

@ -67,7 +67,8 @@ export class AppComponent {
var community = null;
this.community = null;
this.showMenu = false;
this._communitiesService.getCommunities(this.properties.communityAPI+"communities").subscribe (
this._communitiesService.getCommunities(this.properties, this.properties.communityAPI+"communities").subscribe (
communities => {
this.userMenuItems =[ new MenuItem("","My profile","","",false,[],[],{}),
new MenuItem("","My claims","","/myclaims",false,[],["/myclaims"],{}),

View File

@ -57,7 +57,7 @@ export class CommunitiesComponent {
this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE").subscribe();
}
this._communitiesService.getCommunities(this.properties.communitiesAPI).subscribe(
this._communitiesService.getCommunities(this.properties, this.properties.communitiesAPI).subscribe(
communitiesResults => {
this.communitiesResults = communitiesResults;
//console.log(communitiesResults);

View File

@ -76,7 +76,7 @@ export class CommunityComponent {
// });
if (this.communityId != null && this.communityId != '') {
this._communityService.getCommunity(this.properties.communityAPI+this.communityId).subscribe (
this._communityService.getCommunity(this.properties, this.properties.communityAPI+this.communityId).subscribe (
community => {
this.community = community;
this.params = {community: encodeURIComponent('"'+community.queryId+'"')};

View File

@ -36,7 +36,7 @@ export class ManageComponent {
this.isManager = true;
}else if(Session.isLoggedIn()){
var email = Session.getUserEmail();
this._communityService.iscommunityManager(this.properties.communityAPI+ this.communityId, email).subscribe (
this._communityService.iscommunityManager(this.properties, this.properties.communityAPI+ this.communityId, email).subscribe (
res => {
this.isManager = res;
});