diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-04-08 20:58:07 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-04-08 21:03:47 +0200 |
commit | 44124980c55d5a5ec7dfb8e71bf14d10f0fe975d (patch) | |
tree | 795191ff37d862a4bcf9cbc57cdb60b909b038d1 /client/angular/app/app.component.ts | |
parent | 0dde91ff15ec3cb73d39da50b388e5e525160cb4 (diff) | |
download | PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.tar.gz PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.tar.zst PeerTube-44124980c55d5a5ec7dfb8e71bf14d10f0fe975d.zip |
Add typescript (and angular2) linter
Diffstat (limited to 'client/angular/app/app.component.ts')
-rw-r--r-- | client/angular/app/app.component.ts | 11 |
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 | } |