@@ -187,7 +187,7 @@
Filter by community:
diff --git a/app/pages/helpcontent/page-help-contents.component.ts b/app/pages/helpcontent/page-help-contents.component.ts
index 3d3b8a0..e7e4e70 100644
--- a/app/pages/helpcontent/page-help-contents.component.ts
+++ b/app/pages/helpcontent/page-help-contents.component.ts
@@ -49,7 +49,7 @@ export class PageHelpContentsComponent implements OnInit {
public communities: Community[] = [];
- public selectedCommunityId: string;
+ public selectedCommunityPid: string;
public selectedPageId: string;
@@ -60,13 +60,13 @@ export class PageHelpContentsComponent implements OnInit {
ngOnInit() {
this.route.queryParams.subscribe(params => {
- this.selectedCommunityId = params['community'];
+ this.selectedCommunityPid = params['community'];
this.selectedPageId = params['page'];
- if(this.selectedCommunityId && this.selectedPageId) {
- this.getPageHelpContents(this.selectedCommunityId);
+ if(this.selectedCommunityPid && this.selectedPageId) {
+ this.getPageHelpContents(this.selectedCommunityPid);
this.getPage(this.selectedPageId);
- this.getCommunity(this.selectedCommunityId);
+ this.getCommunity(this.selectedCommunityPid);
} else {
this.selectedPageId = "";
this.getCommunities();
@@ -86,9 +86,9 @@ export class PageHelpContentsComponent implements OnInit {
);
}
- getCommunity(communityId: string) {
+ getCommunity(communityPid: string) {
let self = this;
- this._helpService.getCommunity(communityId).subscribe(
+ this._helpService.getCommunity(communityPid).subscribe(
community => {
self.community = community;
}
@@ -100,15 +100,15 @@ export class PageHelpContentsComponent implements OnInit {
this._helpService.getCommunities().subscribe(
communities => {
self.communities = communities;
- self.selectedCommunityId = self.communities[0]._id;
- this.getPages(self.selectedCommunityId);
- this.getPageHelpContents(self.selectedCommunityId);
+ self.selectedCommunityPid = self.communities[0].pid;
+ this.getPages(self.selectedCommunityPid);
+ this.getPageHelpContents(self.selectedCommunityPid);
},
error => this.handleError('System error retrieving communities', error));
}
- getPages(community_id: string) {
- this._helpService.getCommunityPages(community_id).subscribe(
+ getPages(community_pid: string) {
+ this._helpService.getCommunityPages(community_pid).subscribe(
pages => this.pages = pages,
error => this.handleError('System error retrieving pages', error));
}
@@ -126,9 +126,9 @@ export class PageHelpContentsComponent implements OnInit {
this.counter.all = this.counter.active + this.counter.inactive;
}
- getPageHelpContents(community_id: string) {
+ getPageHelpContents(community_pid: string) {
let self = this;
- this._helpService.getCommunityPageHelpContents(community_id).subscribe(
+ this._helpService.getCommunityPageHelpContents(community_pid).subscribe(
pageHelpContents => {
self.pageHelpContents = pageHelpContents as Array