[Trunk|Admin]: Add get PageFull to get entities full.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56670 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
82c6deede8
commit
e714c7543d
|
@ -108,7 +108,7 @@ export class PagesComponent implements OnInit {
|
||||||
error => this.handleError('System error retrieving pages', error)
|
error => this.handleError('System error retrieving pages', error)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
this._helpContentService.getPages(this.properties.adminToolsAPIURL, null).subscribe(
|
this._helpContentService.getPagesFull(this.properties.adminToolsAPIURL, null).subscribe(
|
||||||
pages => {
|
pages => {
|
||||||
this.pagesReturned(pages);
|
this.pagesReturned(pages);
|
||||||
this.showLoading = false;
|
this.showLoading = false;
|
||||||
|
|
|
@ -132,6 +132,12 @@ export class HelpContentService {
|
||||||
.pipe(catchError(this.handleError));
|
.pipe(catchError(this.handleError));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getPagesFull(helpContentUrl:string,pid:string) {
|
||||||
|
return this.http.get<Array<Page>>(helpContentUrl + 'pageFull'+(pid?("?pid="+pid):""))
|
||||||
|
//.map(res => <Array<Page>> res.json())
|
||||||
|
.pipe(catchError(this.handleError));
|
||||||
|
}
|
||||||
|
|
||||||
getPage(pageId:string, helpContentUrl:string) {
|
getPage(pageId:string, helpContentUrl:string) {
|
||||||
return this.http.get<Page>(helpContentUrl + 'page/'+pageId)
|
return this.http.get<Page>(helpContentUrl + 'page/'+pageId)
|
||||||
//.map(res => <Page> res.json())
|
//.map(res => <Page> res.json())
|
||||||
|
|
Loading…
Reference in New Issue