Revision 60536
Added by Konstantinos Triantafyllou about 3 years ago
help-content.service.ts | ||
---|---|---|
281 | 281 |
// //.map(res => <Array<Page>> res.json()) |
282 | 282 |
// .pipe(catchError(this.handleError)); |
283 | 283 |
// } |
284 |
|
|
284 |
|
|
285 |
getCommunityPagesByRoute(pid: string, route: string, helpContentUrl:string) { |
|
286 |
return this.http.get<Array<Page>>(helpContentUrl + properties.adminToolsPortalType + '/'+pid+'/pages' |
|
287 |
+ (route ? '?page_route='+route : '')) |
|
288 |
.pipe(map(pages => (pages.length>0?pages[0]:null)), catchError(this.handleError)); |
|
289 |
} |
|
290 |
|
|
285 | 291 |
// Replacing getCommunityPages |
286 | 292 |
getCommunityPagesByType(pid: string, type: string, helpContentUrl:string) { |
287 | 293 |
return this.http.get<Array<Page>>(helpContentUrl + properties.adminToolsPortalType + '/'+pid+'/pages' |
288 | 294 |
+ (type ? '?page_type='+type : '')) |
289 |
//.map(res => <Array<Page>> res.json()) |
|
290 | 295 |
.pipe(catchError(this.handleError)); |
291 | 296 |
} |
292 | 297 |
// End of replacing getCommunityPages |
Also available in: Unified diff
[Admin | New-UI]: Finish personal-info. Delete old curator component