Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed Apr 15, 2024
1 parent 924e54b commit aee39f2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
12 changes: 6 additions & 6 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,12 +339,12 @@
},
"build-schematics": {
"executor": "nx:run-commands",
"options": {
"commands": [
"npx tsc -p lib/core/tsconfig.schematics.json",
"cp lib/core/schematics/migrations/collection.json dist/libs/core/schematics/migrations/collection.json"
],
"parallel": false
"options": {
"commands": [
{
"command": "npx tsc -p lib/core/tsconfig.schematics.json && cp lib/core/schematics/migrations/collection.json dist/libs/core/schematics/migrations/collection.json"
}
]
}
},
"test": {
Expand Down
6 changes: 3 additions & 3 deletions lib/core/src/lib/common/services/user-preferences.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ export class UserPreferencesService {
private appConfig: AppConfigService,
private storage: StorageService
) {
this.onChangeSubject = new BehaviorSubject(this.userPreferenceStatus);
this.onChange = this.onChangeSubject.asObservable();

this.appConfig.onLoad.subscribe(() => {
this.initUserPreferenceStatus();
});

this.onChangeSubject = new BehaviorSubject(this.userPreferenceStatus);
this.onChange = this.onChangeSubject.asObservable();
}

private initUserPreferenceStatus() {
Expand Down
2 changes: 2 additions & 0 deletions lib/core/src/lib/testing/core.testing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { HttpClientModule } from '@angular/common/http';
import { directionalityConfigFactory } from '../common/services/directionality-config-factory';
import { DirectionalityConfigService } from '../common/services/directionality-config.service';
import { AuthModule } from '../auth';
import { UserPreferencesService } from '../common/services/user-preferences.service';

@NgModule({
imports: [
Expand All @@ -43,6 +44,7 @@ import { AuthModule } from '../auth';
],
providers: [
DatePipe,
UserPreferencesService,
{ provide: AppConfigService, useClass: AppConfigServiceMock },
{ provide: TranslationService, useClass: TranslationMock },
{ provide: CookieService, useClass: CookieServiceMock },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,14 @@ export class TaskListCloudComponent extends BaseTaskListCloudComponent<ProcessLi
map(([isLoadingPreferences, isReloading]) => isLoadingPreferences || isReloading)
);

constructor(@Inject(TASK_LIST_CLOUD_TOKEN) public taskListCloudService: TaskListCloudServiceInterface,
appConfigService: AppConfigService,
taskCloudService: TaskCloudService,
userPreferences: UserPreferencesService,
@Inject(TASK_LIST_PREFERENCES_SERVICE_TOKEN) cloudPreferenceService: PreferenceCloudServiceInterface,
private viewModelCreator: VariableMapperService
) {
constructor(
@Inject(TASK_LIST_CLOUD_TOKEN) public taskListCloudService: TaskListCloudServiceInterface,
appConfigService: AppConfigService,
taskCloudService: TaskCloudService,
userPreferences: UserPreferencesService,
@Inject(TASK_LIST_PREFERENCES_SERVICE_TOKEN) cloudPreferenceService: PreferenceCloudServiceInterface,
private viewModelCreator: VariableMapperService
) {
super(appConfigService, taskCloudService, userPreferences, PRESET_KEY, cloudPreferenceService);
}

Expand Down

0 comments on commit aee39f2

Please sign in to comment.