diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-09-28 13:42:33 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2018-09-28 13:42:33 +0200 |
commit | 8be9f43aed84aa82a4a8e166c0855bd19e8afa90 (patch) | |
tree | 037aaffc284f35651e1cf9a47b9c79d51adfa3e5 /client/src/app/shared/user-subscription/subscribe-button.component.ts | |
parent | 5ce1208a0a57d566b5b1fd57ec291a7d053ebaf0 (diff) | |
download | PeerTube-8be9f43aed84aa82a4a8e166c0855bd19e8afa90.tar.gz PeerTube-8be9f43aed84aa82a4a8e166c0855bd19e8afa90.tar.zst PeerTube-8be9f43aed84aa82a4a8e166c0855bd19e8afa90.zip |
correct local subscribe in the subscription menu
Diffstat (limited to 'client/src/app/shared/user-subscription/subscribe-button.component.ts')
-rw-r--r-- | client/src/app/shared/user-subscription/subscribe-button.component.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.ts b/client/src/app/shared/user-subscription/subscribe-button.component.ts index 95c2bb8f8..315ea5037 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.ts +++ b/client/src/app/shared/user-subscription/subscribe-button.component.ts | |||
@@ -52,6 +52,7 @@ export class SubscribeButtonComponent implements OnInit { | |||
52 | if (this.isUserLoggedIn()) { | 52 | if (this.isUserLoggedIn()) { |
53 | this.localSubscribe() | 53 | this.localSubscribe() |
54 | } else { | 54 | } else { |
55 | this.authService.redirectUrl = this.router.url | ||
55 | this.gotoLogin() | 56 | this.gotoLogin() |
56 | } | 57 | } |
57 | } | 58 | } |