diff --git a/demo-shell/src/app/components/files/files.component.ts b/demo-shell/src/app/components/files/files.component.ts index e52f360c7b..f7ebf5b68a 100644 --- a/demo-shell/src/app/components/files/files.component.ts +++ b/demo-shell/src/app/components/files/files.component.ts @@ -205,7 +205,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy { this.contentService.folderCreated.subscribe(value => this.onFolderCreated(value)); this.onCreateFolder = this.contentService.folderCreate.subscribe(value => this.onFolderAction(value)); this.onEditFolder = this.contentService.folderEdit.subscribe(value => this.onFolderAction(value)); - this.supportedPages = this.preference.getDifferentPageSizes(); + this.supportedPages = this.preference.getDefaultPageSizes(); // this.permissionsStyle.push(new PermissionStyleModel('document-list__create', PermissionsEnum.CREATE)); // this.permissionsStyle.push(new PermissionStyleModel('document-list__disable', PermissionsEnum.NOT_CREATE, false, true)); diff --git a/demo-shell/src/app/components/process-service/process-service.component.ts b/demo-shell/src/app/components/process-service/process-service.component.ts index d7ef59df72..9180214a74 100644 --- a/demo-shell/src/app/components/process-service/process-service.component.ts +++ b/demo-shell/src/app/components/process-service/process-service.component.ts @@ -225,7 +225,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit this.currentProcessInstanceId = null; }); this.layoutType = AppsListComponent.LAYOUT_GRID; - this.supportedPages = this.preferenceService.getDifferentPageSizes(); + this.supportedPages = this.preferenceService.getDefaultPageSizes(); } ngOnDestroy() { diff --git a/lib/content-services/document-list/components/document-list.component.ts b/lib/content-services/document-list/components/document-list.component.ts index 294e399bf4..03fb5a7a85 100644 --- a/lib/content-services/document-list/components/document-list.component.ts +++ b/lib/content-services/document-list/components/document-list.component.ts @@ -940,7 +940,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte } get supportedPageSizes(): number[] { - return this.preferences.getDifferentPageSizes(); + return this.preferences.getDefaultPageSizes(); } ngOnDestroy() { diff --git a/lib/core/services/user-preferences.service.spec.ts b/lib/core/services/user-preferences.service.spec.ts index b39594abf9..09fac433fa 100644 --- a/lib/core/services/user-preferences.service.spec.ts +++ b/lib/core/services/user-preferences.service.spec.ts @@ -72,7 +72,7 @@ describe('UserPreferencesService', () => { }); it('should return supported page sizes defined in the app config', () => { - const supportedPages = preferences.getDifferentPageSizes(); + const supportedPages = preferences.getDefaultPageSizes(); expect(supportedPages).toEqual(supportedPaginationSize); }); diff --git a/lib/core/services/user-preferences.service.ts b/lib/core/services/user-preferences.service.ts index d9f1452db1..90b87b16c6 100644 --- a/lib/core/services/user-preferences.service.ts +++ b/lib/core/services/user-preferences.service.ts @@ -130,7 +130,7 @@ export class UserPreferencesService { } /** Gets an array containing the available page sizes. */ - getDifferentPageSizes(): number[] { + getDefaultPageSizes(): number[] { return this.defaults.supportedPageSizes; } diff --git a/lib/process-services/process-list/components/process-list.component.ts b/lib/process-services/process-list/components/process-list.component.ts index fbec345f2f..ddb5a2e2bb 100644 --- a/lib/process-services/process-list/components/process-list.component.ts +++ b/lib/process-services/process-list/components/process-list.component.ts @@ -407,6 +407,6 @@ export class ProcessInstanceListComponent implements OnChanges, AfterContentInit } get supportedPageSizes(): number[] { - return this.userPreferences.getDifferentPageSizes(); + return this.userPreferences.getDefaultPageSizes(); } } diff --git a/lib/process-services/task-list/components/task-list.component.ts b/lib/process-services/task-list/components/task-list.component.ts index 592a8c4e4a..38ad4d319b 100644 --- a/lib/process-services/task-list/components/task-list.component.ts +++ b/lib/process-services/task-list/components/task-list.component.ts @@ -439,6 +439,6 @@ export class TaskListComponent implements OnChanges, AfterContentInit, Paginated } get supportedPageSizes(): number[] { - return this.userPreferences.getDifferentPageSizes(); + return this.userPreferences.getDefaultPageSizes(); } }