Updated comments.

This commit is contained in:
Michael Spalti
2022-09-20 17:17:15 -07:00
parent 4d43a34cb3
commit 5a815da5f2
2 changed files with 6 additions and 4 deletions

View File

@@ -25,6 +25,7 @@ export class CommunityPageSubCollectionListComponent implements OnInit, OnDestro
/**
* Optional page size. Overrides communityList.pageSize configuration for this component.
* Value can be added in the themed version of the parent component.
*/
@Input() pageSize: number;
@@ -57,7 +58,7 @@ export class CommunityPageSubCollectionListComponent implements OnInit, OnDestro
this.config = new PaginationComponentOptions();
this.config.id = this.pageId;
if (hasValue(this.pageSize)) {
this.config.pageSize = this.pageSize
this.config.pageSize = this.pageSize;
}
this.config.currentPage = 1;
this.sortConfig = new SortOptions('dc.title', SortDirection.ASC);

View File

@@ -28,6 +28,7 @@ export class CommunityPageSubCommunityListComponent implements OnInit, OnDestroy
/**
* Optional page size. Overrides communityList.pageSize configuration for this component.
* Value can be added in the themed version of the parent component.
*/
@Input() pageSize: number;
@@ -60,7 +61,7 @@ export class CommunityPageSubCommunityListComponent implements OnInit, OnDestroy
this.config = new PaginationComponentOptions();
this.config.id = this.pageId;
if (hasValue(this.pageSize)) {
this.config.pageSize = this.pageSize
this.config.pageSize = this.pageSize;
}
this.config.currentPage = 1;
this.sortConfig = new SortOptions('dc.title', SortDirection.ASC);