mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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:
@@ -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));
|
||||
|
@@ -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() {
|
||||
|
@@ -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