[Connect | Trunk]: Change get affiliation function
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@59246 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
db3305e4ea
commit
01b1e28726
|
@ -62,14 +62,14 @@ export class AffiliationsComponent {
|
|||
}
|
||||
if(this.getAffiliationsFromAPI) {
|
||||
this.showLoading = true;
|
||||
this.affiliationService.initAffiliations(this.properties, this.properties.communityAPI + this.communityId + "/organizations");
|
||||
this.affiliationService.initAffiliations(this.communityId);
|
||||
this.affiliationService.affiliations.subscribe(
|
||||
affiliations => {
|
||||
this.affiliations = affiliations;
|
||||
this.showLoading = false;
|
||||
},
|
||||
error => {
|
||||
console.error("Affiliations Component: Error getting affiliations for community with id: "+this.communityId, error);
|
||||
console.error("Affiliations Component: Error getting affiliations for community with id: " + this.communityId, error);
|
||||
this.showLoading = false;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue