[ADF-2119] Document List - The pagination should be fetched from the UserPreference (#2801)

* Changed the service fetching page sizes in document-list component

* uncommented a line in process-service.component.ts for the tasklist to show page-sizes in task-list
This commit is contained in:
madhukar23
2018-01-05 17:53:40 +05:30
committed by Maurizio Vitale
parent 77822b8494
commit f58405e07a
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
private preferenceService: UserPreferencesService) {
this.dataTasks = new ObjectDataTableAdapter();
this.dataTasks.setSorting(new DataSorting('created', 'desc'));
// this.supportedPages = this.preferenceService.getDifferentPageSizes();
this.supportedPages = this.preferenceService.getDifferentPageSizes();
this.taskPagination.maxItems = this.preferenceService.paginationSize;
// Uncomment this line to replace all 'text' field editors with custom component

View File

@@ -874,7 +874,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
}
get supportedPageSizes(): number[] {
return this.appConfig.get('document-list.supportedPageSizes', [5, 10, 15, 25]);
return this.preferences.getDifferentPageSizes();
}
ngOnDestroy() {