aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/user-subscription
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-11 15:27:46 +0100
committerChocobozzz <me@florianbigard.com>2018-12-11 15:27:46 +0100
commitdae5ca24b173aebd16de2a202ccd4088568b8dfb (patch)
tree29d07d765478776b7c3f91f40443be1acb561df9 /client/src/app/shared/user-subscription
parentf481c4f9f31e897a08e818f388fecdee07f57142 (diff)
downloadPeerTube-dae5ca24b173aebd16de2a202ccd4088568b8dfb.tar.gz
PeerTube-dae5ca24b173aebd16de2a202ccd4088568b8dfb.tar.zst
PeerTube-dae5ca24b173aebd16de2a202ccd4088568b8dfb.zip
Redirect to the last url on login
Diffstat (limited to 'client/src/app/shared/user-subscription')
-rw-r--r--client/src/app/shared/user-subscription/subscribe-button.component.ts7
1 files changed, 3 insertions, 4 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 315ea5037..9c8a15023 100644
--- a/client/src/app/shared/user-subscription/subscribe-button.component.ts
+++ b/client/src/app/shared/user-subscription/subscribe-button.component.ts
@@ -50,11 +50,10 @@ export class SubscribeButtonComponent implements OnInit {
50 50
51 subscribe () { 51 subscribe () {
52 if (this.isUserLoggedIn()) { 52 if (this.isUserLoggedIn()) {
53 this.localSubscribe() 53 return this.localSubscribe()
54 } else {
55 this.authService.redirectUrl = this.router.url
56 this.gotoLogin()
57 } 54 }
55
56 return this.gotoLogin()
58 } 57 }
59 58
60 localSubscribe () { 59 localSubscribe () {