]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/modals/video-download.component.html
Merge branch 'release/2.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / modals / video-download.component.html
index ed61198c42f1d4bbfcb080e429607434d64ec5ee..976da03f3d641fb4f5e20b08b47d95aacb91f451 100644 (file)
@@ -1,9 +1,10 @@
 <ng-template #modal let-hide="close">
   <div class="modal-header">
-    <h4 i18n class="modal-title">Download 
+    <h4 class="modal-title">Download
       <span *ngIf="!videoCaptions" i18n>video</span>
+
       <div *ngIf="videoCaptions" ngbDropdown class="d-inline-block">
-        <span id="dropdownDownloadType" ngbDropdownToggle i18n>
+        <span id="dropdownDownloadType" ngbDropdownToggle>
           {{ type }}
         </span>
         <div ngbDropdownMenu aria-labelledby="dropdownDownloadType">
           <select *ngIf="type === 'video'" [(ngModel)]="resolutionId">
             <option *ngFor="let file of getVideoFiles()" [value]="file.resolution.id">{{ file.resolution.label }}</option>
           </select>
+
           <select *ngIf="type === 'subtitles'" [(ngModel)]="subtitleLanguageId">
             <option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option>
           </select>
         </div>
+
         <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getLink()" />
         <div class="input-group-append">
-          <button [ngxClipboard]="urlInput" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
+          <button [cdkCopyToClipboard]="urlInput.value" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary">
             <span class="glyphicon glyphicon-copy"></span>
           </button>
         </div>