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