aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/angular/app')
-rw-r--r--client/angular/app/app.component.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts
index 1648b8870..68c9ba009 100644
--- a/client/angular/app/app.component.ts
+++ b/client/angular/app/app.component.ts
@@ -53,8 +53,11 @@ export class AppComponent {
53 private _authService: AuthService, 53 private _authService: AuthService,
54 private _router: Router 54 private _router: Router
55 ) { 55 ) {
56 if (localStorage.getItem('access_token')) this.isLoggedIn = true; 56 if (localStorage.getItem('access_token')) {
57 else this.isLoggedIn = false; 57 this.isLoggedIn = true;
58 } else {
59 this.isLoggedIn = false;
60 }
58 61
59 this._authService.loginChanged$.subscribe( 62 this._authService.loginChanged$.subscribe(
60 status => { 63 status => {
@@ -87,7 +90,7 @@ export class AppComponent {
87 } 90 }
88 }, 91 },
89 error => alert(error) 92 error => alert(error)
90 ) 93 );
91 } 94 }
92 95
93 quitFriends() { 96 quitFriends() {
@@ -96,6 +99,6 @@ export class AppComponent {
96 alert('Quit friends!'); 99 alert('Quit friends!');
97 }, 100 },
98 error => alert(error) 101 error => alert(error)
99 ) 102 );
100 } 103 }
101} 104}