From 7fdd43f339bdf19289f425acedc08be003425160 Mon Sep 17 00:00:00 2001 From: Vito Date: Mon, 14 May 2018 10:25:16 +0100 Subject: [PATCH] [ADF-2986] try to pick the start value from local storage before the standard default (#3318) --- lib/core/services/user-preferences.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/services/user-preferences.service.ts b/lib/core/services/user-preferences.service.ts index b4934c5ab3..924727c000 100644 --- a/lib/core/services/user-preferences.service.ts +++ b/lib/core/services/user-preferences.service.ts @@ -70,7 +70,8 @@ export class UserPreferencesService { private initUserPreferenceStatus() { this.userPreferenceStatus[UserPreferenceValues.Locale] = this.locale || this.getDefaultLocale(); - this.userPreferenceStatus[UserPreferenceValues.PaginationSize] = this.appConfig.get('pagination.size', this.defaults.paginationSize); + this.userPreferenceStatus[UserPreferenceValues.PaginationSize] = this.paginationSize ? + this.paginationSize : this.appConfig.get('pagination.size', this.defaults.paginationSize); this.userPreferenceStatus[UserPreferenceValues.SupportedPageSizes] = this.appConfig.get('pagination.supportedPageSizes', this.defaults.supportedPageSizes); this.userPreferenceStatus[UserPreferenceValues.DisableCSRF] = this.disableCSRF; }