mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-2443] renaming getDifferentPageSize to getDefaultPageSize (#3060)
* [ADF-2443] renaming getDifferentPageSize to getDefaultPageSize * [ADF-2443] fixed method call for demo shell
This commit is contained in:
@@ -940,7 +940,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
||||
}
|
||||
|
||||
get supportedPageSizes(): number[] {
|
||||
return this.preferences.getDifferentPageSizes();
|
||||
return this.preferences.getDefaultPageSizes();
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ export class UserPreferencesService {
|
||||
}
|
||||
|
||||
/** Gets an array containing the available page sizes. */
|
||||
getDifferentPageSizes(): number[] {
|
||||
getDefaultPageSizes(): number[] {
|
||||
return this.defaults.supportedPageSizes;
|
||||
}
|
||||
|
||||
|
||||
@@ -407,6 +407,6 @@ export class ProcessInstanceListComponent implements OnChanges, AfterContentInit
|
||||
}
|
||||
|
||||
get supportedPageSizes(): number[] {
|
||||
return this.userPreferences.getDifferentPageSizes();
|
||||
return this.userPreferences.getDefaultPageSizes();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -439,6 +439,6 @@ export class TaskListComponent implements OnChanges, AfterContentInit, Paginated
|
||||
}
|
||||
|
||||
get supportedPageSizes(): number[] {
|
||||
return this.userPreferences.getDifferentPageSizes();
|
||||
return this.userPreferences.getDefaultPageSizes();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user