Revision 56331
Added by Konstantina Galouni almost 5 years ago
invite.component.ts | ||
---|---|---|
81 | 81 |
this.status = this.errorCodes.LOADING; |
82 | 82 |
this.route.queryParams.subscribe( |
83 | 83 |
communityId => { |
84 |
this.communityId = communityId['communityId']; |
|
85 |
if(!this.communityId && typeof document !== 'undefined'){ |
|
86 |
this.communityId = ConnectHelper.getCommunityFromDomain(data.envSpecific.domain); |
|
84 |
//if(!this.communityId && typeof document !== 'undefined'){ |
|
85 |
this.communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain); |
|
86 |
if(!this.communityId) { |
|
87 |
this.communityId = communityId['community']; |
|
87 | 88 |
} |
89 |
|
|
88 | 90 |
this.communityIdParam = (this.properties.environment !="development" )?{}:{communityId:this.communityId}; |
89 | 91 |
if (this.communityId != null && this.communityId != '') { |
90 | 92 |
this._communityService.getCommunity(this.properties, this.properties.communityAPI+this.communityId).subscribe ( |
Also available in: Unified diff
[Trunk | Connect]:
affiliations.component & directLinking.component & linkingGeneric.component & communityWrapper.component &
curators.component & depositBySubjectResult.component & depositDatasets.component & depositDatasetsResult.component &
depositPublications.component & depositPublicationsResult.component & shareInZenodo.component & htmlPage.component &
user.component & searchDataproviders.component & searchProjects.component & statistics.component & invite.component:
Priority to get communityId from domain (if not exists, check url parameter)