From 7422ec20d669bcc12519f380b408c62fd8815845 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 6 Mar 2018 13:48:21 +0000 Subject: [PATCH] [ACA-1181] workaround for pagination bug (#219) --- src/app/app.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 23990db92..a69ded848 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -25,7 +25,7 @@ import { Component, OnInit } from '@angular/core'; import { Router, ActivatedRoute, NavigationEnd } from '@angular/router'; -import { TranslationService, PageTitleService } from '@alfresco/adf-core'; +import { TranslationService, PageTitleService, UserPreferencesService, AppConfigService } from '@alfresco/adf-core'; @Component({ selector: 'app-root', @@ -37,7 +37,11 @@ export class AppComponent implements OnInit { private route: ActivatedRoute, private router: Router, 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() {