[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:
Vito
2018-03-12 16:25:38 +00:00
committed by Eugenio Romano
parent 333e8ee89c
commit 84fcdd46c2
7 changed files with 7 additions and 7 deletions

View File

@@ -205,7 +205,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
this.contentService.folderCreated.subscribe(value => this.onFolderCreated(value)); this.contentService.folderCreated.subscribe(value => this.onFolderCreated(value));
this.onCreateFolder = this.contentService.folderCreate.subscribe(value => this.onFolderAction(value)); this.onCreateFolder = this.contentService.folderCreate.subscribe(value => this.onFolderAction(value));
this.onEditFolder = this.contentService.folderEdit.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__create', PermissionsEnum.CREATE));
// this.permissionsStyle.push(new PermissionStyleModel('document-list__disable', PermissionsEnum.NOT_CREATE, false, true)); // this.permissionsStyle.push(new PermissionStyleModel('document-list__disable', PermissionsEnum.NOT_CREATE, false, true));

View File

@@ -225,7 +225,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
this.currentProcessInstanceId = null; this.currentProcessInstanceId = null;
}); });
this.layoutType = AppsListComponent.LAYOUT_GRID; this.layoutType = AppsListComponent.LAYOUT_GRID;
this.supportedPages = this.preferenceService.getDifferentPageSizes(); this.supportedPages = this.preferenceService.getDefaultPageSizes();
} }
ngOnDestroy() { ngOnDestroy() {

View File

@@ -940,7 +940,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
} }
get supportedPageSizes(): number[] { get supportedPageSizes(): number[] {
return this.preferences.getDifferentPageSizes(); return this.preferences.getDefaultPageSizes();
} }
ngOnDestroy() { ngOnDestroy() {

View File

@@ -72,7 +72,7 @@ describe('UserPreferencesService', () => {
}); });
it('should return supported page sizes defined in the app config', () => { it('should return supported page sizes defined in the app config', () => {
const supportedPages = preferences.getDifferentPageSizes(); const supportedPages = preferences.getDefaultPageSizes();
expect(supportedPages).toEqual(supportedPaginationSize); expect(supportedPages).toEqual(supportedPaginationSize);
}); });

View File

@@ -130,7 +130,7 @@ export class UserPreferencesService {
} }
/** Gets an array containing the available page sizes. */ /** Gets an array containing the available page sizes. */
getDifferentPageSizes(): number[] { getDefaultPageSizes(): number[] {
return this.defaults.supportedPageSizes; return this.defaults.supportedPageSizes;
} }

View File

@@ -407,6 +407,6 @@ export class ProcessInstanceListComponent implements OnChanges, AfterContentInit
} }
get supportedPageSizes(): number[] { get supportedPageSizes(): number[] {
return this.userPreferences.getDifferentPageSizes(); return this.userPreferences.getDefaultPageSizes();
} }
} }

View File

@@ -439,6 +439,6 @@ export class TaskListComponent implements OnChanges, AfterContentInit, Paginated
} }
get supportedPageSizes(): number[] { get supportedPageSizes(): number[] {
return this.userPreferences.getDifferentPageSizes(); return this.userPreferences.getDefaultPageSizes();
} }
} }