mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1181] workaround for pagination bug (#219)
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
import { Router, ActivatedRoute, NavigationEnd } from '@angular/router';
|
||||||
import { TranslationService, PageTitleService } from '@alfresco/adf-core';
|
import { TranslationService, PageTitleService, UserPreferencesService, AppConfigService } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
@@ -37,7 +37,11 @@ export class AppComponent implements OnInit {
|
|||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private pageTitle: PageTitleService,
|
private pageTitle: PageTitleService,
|
||||||
private translateService: TranslationService) {
|
private translateService: TranslationService,
|
||||||
|
preferences: UserPreferencesService,
|
||||||
|
config: AppConfigService) {
|
||||||
|
// TODO: remove once ADF 2.3.0 is out (needs bug fixes)
|
||||||
|
preferences.defaults.supportedPageSizes = config.get('pagination.supportedPageSizes');
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
Reference in New Issue
Block a user