]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video-feed.component.html
Replace current state when changing page
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-feed.component.html
index 7733ef221c244b5f36a67d52abda07b4240d4040..5ef13e1ed9d108315f6a22e3658ca381deb9ebb4 100644 (file)
@@ -1,14 +1,13 @@
 <div class="video-feed">
-  <span *ngIf="(syndicationItems | myObjectLength) >= 1" class="icon icon-syndication" 
+  <span *ngIf="syndicationItems.length !== 0" class="icon icon-syndication"
     [popover]="feedsList"
     placement="bottom"
     [outsideClick]="true">
   </span>
 
   <ng-template #feedsList>
-    <div *ngFor="let key of syndicationItems | keys">
-      <a [href]="syndicationItems[key]">{{ key }}</a>
+    <div *ngFor="let item of syndicationItems">
+      <a [href]="item.url" target="_blank" rel="noopener noreferrer">{{ item.label }}</a>
     </div>
   </ng-template>
-</div>
-  
\ No newline at end of file
+</div>
\ No newline at end of file