mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Maurizio Vitale
parent
77822b8494
commit
f58405e07a
@@ -153,7 +153,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
|||||||
private preferenceService: UserPreferencesService) {
|
private preferenceService: UserPreferencesService) {
|
||||||
this.dataTasks = new ObjectDataTableAdapter();
|
this.dataTasks = new ObjectDataTableAdapter();
|
||||||
this.dataTasks.setSorting(new DataSorting('created', 'desc'));
|
this.dataTasks.setSorting(new DataSorting('created', 'desc'));
|
||||||
// this.supportedPages = this.preferenceService.getDifferentPageSizes();
|
this.supportedPages = this.preferenceService.getDifferentPageSizes();
|
||||||
this.taskPagination.maxItems = this.preferenceService.paginationSize;
|
this.taskPagination.maxItems = this.preferenceService.paginationSize;
|
||||||
|
|
||||||
// Uncomment this line to replace all 'text' field editors with custom component
|
// Uncomment this line to replace all 'text' field editors with custom component
|
||||||
|
@@ -874,7 +874,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
|||||||
}
|
}
|
||||||
|
|
||||||
get supportedPageSizes(): number[] {
|
get supportedPageSizes(): number[] {
|
||||||
return this.appConfig.get('document-list.supportedPageSizes', [5, 10, 15, 25]);
|
return this.preferences.getDifferentPageSizes();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
|
Reference in New Issue
Block a user