This commit is contained in:
crusader 2018-10-12 22:16:52 +09:00
parent 79105d462f
commit 3c8e2a47c1

View File

@ -39,11 +39,21 @@ export class AppComponent implements OnInit, AfterContentInit, AfterViewInit, On
// this.showTitleBar = !__LINUX__;
this.showTitleBar = false;
this.block = false;
this.translateService.onLangChange.subscribe(() => {
this.changeDetector.detectChanges();
});
this.translateService.onTranslationChange.subscribe(() => {
this.changeDetector.detectChanges();
});
this.translateService.setDefaultLang('en');
this.translateService.use('en');
}
ngOnInit(): void {
const __this = this;
this.store.dispatch(new AppStore.AppInit());
this.store.dispatch(new UserStore.SetMemberID({ memberID: 'scannerUser' }));
// this.probeService.connect();
@ -79,7 +89,7 @@ export class AppComponent implements OnInit, AfterContentInit, AfterViewInit, On
default:
break;
}
this.changeDetector.detectChanges();
__this.changeDetector.detectChanges();
}),
catchError(error => {
return of(error);