From e714c7543d9c6d3bd5a44586e6319bafccf1e9ce Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 22 Jul 2019 13:32:05 +0000 Subject: [PATCH] [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 --- src/app/pages/page/pages.component.ts | 2 +- src/app/services/help-content.service.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/pages/page/pages.component.ts b/src/app/pages/page/pages.component.ts index 728cb0a..5591615 100644 --- a/src/app/pages/page/pages.component.ts +++ b/src/app/pages/page/pages.component.ts @@ -108,7 +108,7 @@ export class PagesComponent implements OnInit { error => this.handleError('System error retrieving pages', error) ); } else { - this._helpContentService.getPages(this.properties.adminToolsAPIURL, null).subscribe( + this._helpContentService.getPagesFull(this.properties.adminToolsAPIURL, null).subscribe( pages => { this.pagesReturned(pages); this.showLoading = false; diff --git a/src/app/services/help-content.service.ts b/src/app/services/help-content.service.ts index 289d2af..9addc2a 100644 --- a/src/app/services/help-content.service.ts +++ b/src/app/services/help-content.service.ts @@ -132,6 +132,12 @@ export class HelpContentService { .pipe(catchError(this.handleError)); } + getPagesFull(helpContentUrl:string,pid:string) { + return this.http.get>(helpContentUrl + 'pageFull'+(pid?("?pid="+pid):"")) + //.map(res => > res.json()) + .pipe(catchError(this.handleError)); + } + getPage(pageId:string, helpContentUrl:string) { return this.http.get(helpContentUrl + 'page/'+pageId) //.map(res => res.json())