[ADF-2676] Demo shell pagination bug fix (#3174)

* Demo shell pagination bug fix

* tslint error fix

* user preferences service fix

* refactor

* refactor

* refactor

* unit tests added

* unit tests fix

* [ADF-2676] added documentation for app config onChange stream

* [ADF-2676] renamed onChange stream to onLoad stream

* [ADF-2676] fixed test
This commit is contained in:
Alex Bolboșenco
2018-04-14 04:47:06 +03:00
committed by Eugenio Romano
parent d0f5bad894
commit 66d8935624
4 changed files with 53 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export class UserPreferencesService {
private storage: StorageService,
private apiService: AlfrescoApiService
) {
this.initUserPreferenceStatus();
this.appConfig.onLoad.subscribe(this.initUserPreferenceStatus.bind(this));
this.localeSubject = new BehaviorSubject(this.defaults.locale);
this.locale$ = this.localeSubject.asObservable();
this.onChangeSubject = new BehaviorSubject(this.userPreferenceStatus);