From 15e382ef310ca42491f9edb797bbc9e4abd60cc1 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Wed, 3 Oct 2018 20:08:27 +0100 Subject: [PATCH] fix login --- src/app/app.component.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 0b48170bc..01d7e186c 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -118,11 +118,15 @@ export class AppComponent implements OnInit, OnDestroy { this.onFileUploadedError(error) ); - this.appService.ready$.pipe(takeUntil(this.onDestroy$)).subscribe(() => { - this.loadRepositoryStatus(); - this.loadUserProfile(); - // todo: load external auth-enabled plugins here - }); + this.appService.ready$ + .pipe(takeUntil(this.onDestroy$)) + .subscribe(isReady => { + if (isReady) { + this.loadRepositoryStatus(); + this.loadUserProfile(); + // todo: load external auth-enabled plugins here + } + }); } ngOnDestroy() {