diff options
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 | } |