fix login

This commit is contained in:
Denys Vuika
2018-10-03 20:08:27 +01:00
parent ba967d0e25
commit 15e382ef31

View File

@@ -118,11 +118,15 @@ export class AppComponent implements OnInit, OnDestroy {
this.onFileUploadedError(error) this.onFileUploadedError(error)
); );
this.appService.ready$.pipe(takeUntil(this.onDestroy$)).subscribe(() => { this.appService.ready$
this.loadRepositoryStatus(); .pipe(takeUntil(this.onDestroy$))
this.loadUserProfile(); .subscribe(isReady => {
// todo: load external auth-enabled plugins here if (isReady) {
}); this.loadRepositoryStatus();
this.loadUserProfile();
// todo: load external auth-enabled plugins here
}
});
} }
ngOnDestroy() { ngOnDestroy() {