diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 7ca6240..05f8e25 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -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"],{}), diff --git a/src/app/communities/communities.component.ts b/src/app/communities/communities.component.ts index 712119d..62f51d0 100644 --- a/src/app/communities/communities.component.ts +++ b/src/app/communities/communities.component.ts @@ -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); diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 1ac4f24..698c3cf 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -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+'"')}; diff --git a/src/app/utils/manage/manage.component.ts b/src/app/utils/manage/manage.component.ts index 789e09a..484e4e4 100644 --- a/src/app/utils/manage/manage.component.ts +++ b/src/app/utils/manage/manage.component.ts @@ -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; });