]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/user-subscription/subscribe-button.component.html
Change button with onclick to link with href
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / user-subscription / subscribe-button.component.html
index dbf6a34f08fd67c8b00e1c37eece6b230d4fddb1..25f3be2155613bc1a68959e68e554effad71d79e 100644 (file)
@@ -2,8 +2,8 @@
     [ngClass]="{'subscribe-button': subscribed !== true, 'unsubscribe-button': subscribed === true}">
   <button *ngIf="subscribed === false && isUserLoggedIn()" type="button"
           class="btn btn-sm" role="button"
-          (click)="subscribe()" i18n>
-    <span>
+          (click)="subscribe()">
+    <span i18n>
       Subscribe
     </span>
     <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count">
@@ -23,7 +23,7 @@
        placement="bottom-right" role="group"
        aria-label="Multiple ways to subscribe to the current channel">
     <button class="btn btn-sm dropdown-toggle-split" ngbDropdownToggle>
-      <span *ngIf="!isUserLoggedIn()">
+      <span *ngIf="!isUserLoggedIn()" i18n>
         Subscribe
       </span>
       <span *ngIf="displayFollowers && videoChannel.followersCount !== 0" class="followers-count">
       </button>
 
       <button class="dropdown-item" i18n>Subscribe with a Mastodon account:</button>
-      <my-remote-subscribe showHelp="true" account="{{ uriAccount }}"></my-remote-subscribe>
+      <my-remote-subscribe showHelp="true" [uri]="channelUri"></my-remote-subscribe>
 
       <div class="dropdown-divider"></div>
 
       <h6 class="dropdown-header" i18n>Using a syndication feed</h6>
-      <button (click)="rssOpen()" class="dropdown-item" i18n>Subscribe via RSS</button>
+      <a [href]="rssUri" target="_blank" class="dropdown-item" i18n>Subscribe via RSS</a>
 
     </div>
   </div>
-</div>
\ No newline at end of file
+</div>