Revision 59465
Added by Konstantina Galouni over 3 years ago
new-div-help-content.component.ts | ||
---|---|---|
62 | 62 |
private getPage(pageId: string) { |
63 | 63 |
this._helpContentService.getPage(pageId,this.properties.adminToolsAPIURL).subscribe( |
64 | 64 |
page => { |
65 |
if( (this.communityPid == 'openaire' && !page.openaire) |
|
66 |
|| (this.communityPid == 'connect' && !page.connect) |
|
67 |
|| (this.communityPid != 'openaire' && this.communityPid != 'connect' && !page.communities)) { |
|
65 |
if(this.properties.adminToolsPortalType != page.portalType) { |
|
68 | 66 |
this.router.navigate(['/classContents'], { queryParams: { "communityId": this.communityPid} }); |
69 | 67 |
} else { |
70 | 68 |
this.page = page; |
Also available in: Unified diff
[Trunk | Library]: Merging branch 'use-UoaAdminToolsLibrary' into trunk for revisions 58402:59464