From 5a815da5f266a2e09d09b2ee35c3e7ed4fcdd549 Mon Sep 17 00:00:00 2001 From: Michael Spalti Date: Tue, 20 Sep 2022 17:17:15 -0700 Subject: [PATCH] Updated comments. --- .../community-page-sub-collection-list.component.ts | 5 +++-- .../community-page-sub-community-list.component.ts | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts b/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts index 9a7950f77d..181ee7cd6f 100644 --- a/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts +++ b/src/app/community-page/sub-collection-list/community-page-sub-collection-list.component.ts @@ -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; @@ -56,8 +57,8 @@ export class CommunityPageSubCollectionListComponent implements OnInit, OnDestro ngOnInit(): void { this.config = new PaginationComponentOptions(); this.config.id = this.pageId; - if(hasValue(this.pageSize)) { - this.config.pageSize = this.pageSize + if (hasValue(this.pageSize)) { + this.config.pageSize = this.pageSize; } this.config.currentPage = 1; this.sortConfig = new SortOptions('dc.title', SortDirection.ASC); diff --git a/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts b/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts index aeb5efab6a..e9da10bfa1 100644 --- a/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts +++ b/src/app/community-page/sub-community-list/community-page-sub-community-list.component.ts @@ -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; @@ -59,8 +60,8 @@ export class CommunityPageSubCommunityListComponent implements OnInit, OnDestroy ngOnInit(): void { this.config = new PaginationComponentOptions(); this.config.id = this.pageId; - if(hasValue(this.pageSize)) { - this.config.pageSize = this.pageSize + if (hasValue(this.pageSize)) { + this.config.pageSize = this.pageSize; } this.config.currentPage = 1; this.sortConfig = new SortOptions('dc.title', SortDirection.ASC);