mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
committed by
Cilibiu Bogdan
parent
79f8ec33a9
commit
c1e9001c38
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
import { MinimalNodeEntity, MinimalNodeEntryEntity, NodePaging, Pagination } from 'alfresco-js-api';
|
||||
import { UserPreferencesService } from '@alfresco/adf-core';
|
||||
|
||||
export abstract class PageComponent {
|
||||
|
||||
@@ -31,6 +32,9 @@ export abstract class PageComponent {
|
||||
|
||||
abstract fetchNodes(parentNodeId?: string, options?: any): void;
|
||||
|
||||
constructor(private preferences: UserPreferencesService) {
|
||||
}
|
||||
|
||||
onFetchError(error: any) {
|
||||
this.isLoading = false;
|
||||
}
|
||||
@@ -121,4 +125,8 @@ export abstract class PageComponent {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
onChangePageSize(event: Pagination): void {
|
||||
this.preferences.paginationSize = event.maxItems;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user