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 | |
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')
-rw-r--r-- | client/src/app/shared/user-subscription/subscribe-button.component.html | 7 | ||||
-rw-r--r-- | client/src/app/shared/user-subscription/subscribe-button.component.ts | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.html b/client/src/app/shared/user-subscription/subscribe-button.component.html index 2c8481c96..dbf6a34f0 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.html +++ b/client/src/app/shared/user-subscription/subscribe-button.component.html | |||
@@ -33,15 +33,14 @@ | |||
33 | 33 | ||
34 | <div class="dropdown-menu" ngbDropdownMenu> | 34 | <div class="dropdown-menu" ngbDropdownMenu> |
35 | 35 | ||
36 | <h6 class="dropdown-header" i18n>Using an ActivityPub-compatible account</h6> | 36 | <h6 class="dropdown-header" i18n>Using an ActivityPub account</h6> |
37 | 37 | ||
38 | <button class="dropdown-item" (click)="subscribe()" | 38 | <button class="dropdown-item" (click)="subscribe()"> |
39 | *ngIf="subscribed === false"> | ||
40 | <span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on {{ videoChannel.host }}</span> | 39 | <span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on {{ videoChannel.host }}</span> |
41 | <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span> | 40 | <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span> |
42 | </button> | 41 | </button> |
43 | 42 | ||
44 | <button class="dropdown-item" i18n>Subscribe with a remote account:</button> | 43 | <button class="dropdown-item" i18n>Subscribe with a Mastodon account:</button> |
45 | <my-remote-subscribe showHelp="true" account="{{ uriAccount }}"></my-remote-subscribe> | 44 | <my-remote-subscribe showHelp="true" account="{{ uriAccount }}"></my-remote-subscribe> |
46 | 45 | ||
47 | <div class="dropdown-divider"></div> | 46 | <div class="dropdown-divider"></div> |
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 | } |