fix login

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

View File

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