correct local subscribe in the subscription menu
authorRigel Kent <sendmemail@rigelk.eu>
Fri, 28 Sep 2018 11:42:33 +0000 (13:42 +0200)
committerRigel Kent <sendmemail@rigelk.eu>
Fri, 28 Sep 2018 11:42:33 +0000 (13:42 +0200)
client/src/app/shared/user-subscription/subscribe-button.component.html
client/src/app/shared/user-subscription/subscribe-button.component.ts
client/src/app/videos/+video-watch/comment/video-comment-add.component.html

index 2c8481c96091589b39e758c3f403153dda5b05df..dbf6a34f08fd67c8b00e1c37eece6b230d4fddb1 100644 (file)
 
     <div class="dropdown-menu" ngbDropdownMenu>
 
-      <h6 class="dropdown-header" i18n>Using an ActivityPub-compatible account</h6>
+      <h6 class="dropdown-header" i18n>Using an ActivityPub account</h6>
 
-      <button class="dropdown-item" (click)="subscribe()"
-              *ngIf="subscribed === false">
+      <button class="dropdown-item" (click)="subscribe()">
         <span *ngIf="!isUserLoggedIn()" i18n>Subscribe with an account on {{ videoChannel.host }}</span>
         <span *ngIf="isUserLoggedIn()" i18n>Subscribe with your local account</span>
       </button>
 
-      <button class="dropdown-item" i18n>Subscribe with a remote account:</button>
+      <button class="dropdown-item" i18n>Subscribe with a Mastodon account:</button>
       <my-remote-subscribe showHelp="true" account="{{ uriAccount }}"></my-remote-subscribe>
 
       <div class="dropdown-divider"></div>
index 95c2bb8f8a8289415fd1d8dd4add1a45c3a4e434..315ea5037d8d13cb3ab1329a90eecea27d0aaf6c 100644 (file)
@@ -52,6 +52,7 @@ export class SubscribeButtonComponent implements OnInit {
     if (this.isUserLoggedIn()) {
       this.localSubscribe()
     } else {
+      this.authService.redirectUrl = this.router.url
       this.gotoLogin()
     }
   }
index 4a48f4649fb8042b478e46b7916efc5c516968ce..086a1d84e68e46ed18697f636f407b8bf43412e3 100644 (file)
     </span>
     <span class="btn btn-sm mx-3" role="button" (click)="gotoLogin()" i18n>login to comment</span>
     <span i18n>
-      Otherwise you can comment using an account on an ActivityPub-compatible instance:
+      Otherwise you can comment using an account on any ActivityPub-compatible instance.
+      On most platforms, you can find the video by typing its URL in the search bar and then comment it
+      from within the software's interface.
+    </span>
+    <span i18n>
+      If you have an account on Mastodon or Pleroma, you can open it directly in their interface:
     </span>
     <my-remote-subscribe [interact]="true" account="{{ uri }}"></my-remote-subscribe>
   </div>