]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-share-modal/video-share.component.html
Add buttons in playlist page
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-share-modal / video-share.component.html
similarity index 96%
rename from client/src/app/+videos/+video-watch/modal/video-share.component.html
rename to client/src/app/shared/shared-share-modal/video-share.component.html
index 946e8d8ca02de5b89e2619366723c2c9a0195a2b..4174458b541292e188a0ed01cbfe1679ab97342c 100644 (file)
@@ -7,8 +7,8 @@
 
   <div class="modal-body">
 
-    <div class="playlist" *ngIf="hasPlaylist()">
-      <div class="title-page title-page-single" i18n>Share the playlist</div>
+    <div class="playlist" *ngIf="playlist">
+      <div class="title-page title-page-single" i18n *ngIf="video">Share the playlist</div>
 
       <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activePlaylistId">
 
@@ -53,7 +53,7 @@
 
       <div class="filters">
 
-        <div class="form-group">
+        <div class="form-group" *ngIf="video">
           <my-peertube-checkbox inputName="includeVideoInPlaylist" [(ngModel)]="includeVideoInPlaylist" i18n-labelText
             labelText="Share the playlist at this video position"></my-peertube-checkbox>
         </div>
@@ -62,8 +62,8 @@
     </div>
 
 
-    <div class="video">
-      <div class="title-page title-page-single" *ngIf="hasPlaylist()" i18n>Share the video</div>
+    <div class="video" *ngIf="video">
+      <div class="title-page title-page-single" *ngIf="playlist" i18n>Share the video</div>
 
       <div ngbNav #nav="ngbNav" class="nav-tabs" [(activeId)]="activeVideoId">