aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/angular/app/app.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-04-14 22:07:46 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-04-14 22:07:46 +0200
commit1553e15d82b8a1ec4967a90d43b33274f8215c44 (patch)
treeee53fdbb32895153a1fd2470e1c51cf1d9a38e77 /client/angular/app/app.component.ts
parent0c1cbbfe29d91c95f9c574b57adf067654b8b5b4 (diff)
downloadPeerTube-1553e15d82b8a1ec4967a90d43b33274f8215c44.tar.gz
PeerTube-1553e15d82b8a1ec4967a90d43b33274f8215c44.tar.zst
PeerTube-1553e15d82b8a1ec4967a90d43b33274f8215c44.zip
Implement user requests autorizations in the client side
Diffstat (limited to 'client/angular/app/app.component.ts')
-rw-r--r--client/angular/app/app.component.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts
index 68c9ba009..da9959836 100644
--- a/client/angular/app/app.component.ts
+++ b/client/angular/app/app.component.ts
@@ -53,11 +53,7 @@ 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')) { 56 this.isLoggedIn = this._authService.isLoggedIn();
57 this.isLoggedIn = true;
58 } else {
59 this.isLoggedIn = false;
60 }
61 57
62 this._authService.loginChanged$.subscribe( 58 this._authService.loginChanged$.subscribe(
63 status => { 59 status => {