aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/modals/video-download.component.html
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-01-07 16:53:57 +0100
committerChocobozzz <chocobozzz@cpy.re>2020-01-07 17:09:21 +0100
commit8ba9c205ba239fed18741bed36ad2fb2032cd5b2 (patch)
treefd695eb21a2802e1d4afc6ffd19de75e83910c80 /client/src/app/shared/video/modals/video-download.component.html
parent9b7668f527fce8981f4684ed0459b62e740b4b82 (diff)
downloadPeerTube-8ba9c205ba239fed18741bed36ad2fb2032cd5b2.tar.gz
PeerTube-8ba9c205ba239fed18741bed36ad2fb2032cd5b2.tar.zst
PeerTube-8ba9c205ba239fed18741bed36ad2fb2032cd5b2.zip
Add option to download subtitles in download modal
Diffstat (limited to 'client/src/app/shared/video/modals/video-download.component.html')
-rw-r--r--client/src/app/shared/video/modals/video-download.component.html20
1 files changed, 17 insertions, 3 deletions
diff --git a/client/src/app/shared/video/modals/video-download.component.html b/client/src/app/shared/video/modals/video-download.component.html
index 3619f24e5..ed61198c4 100644
--- a/client/src/app/shared/video/modals/video-download.component.html
+++ b/client/src/app/shared/video/modals/video-download.component.html
@@ -1,6 +1,17 @@
1<ng-template #modal let-hide="close"> 1<ng-template #modal let-hide="close">
2 <div class="modal-header"> 2 <div class="modal-header">
3 <h4 i18n class="modal-title">Download video</h4> 3 <h4 i18n class="modal-title">Download
4 <span *ngIf="!videoCaptions" i18n>video</span>
5 <div *ngIf="videoCaptions" ngbDropdown class="d-inline-block">
6 <span id="dropdownDownloadType" ngbDropdownToggle i18n>
7 {{ type }}
8 </span>
9 <div ngbDropdownMenu aria-labelledby="dropdownDownloadType">
10 <button *ngIf="type === 'video'" (click)="switchToType('subtitles')" ngbDropdownItem i18n>subtitles</button>
11 <button *ngIf="type === 'subtitles'" (click)="switchToType('video')" ngbDropdownItem i18n>video</button>
12 </div>
13 </div>
14 </h4>
4 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon> 15 <my-global-icon iconName="cross" aria-label="Close" role="button" (click)="hide()"></my-global-icon>
5 </div> 16 </div>
6 17
@@ -8,9 +19,12 @@
8 <div class="form-group"> 19 <div class="form-group">
9 <div class="input-group input-group-sm"> 20 <div class="input-group input-group-sm">
10 <div class="input-group-prepend peertube-select-container"> 21 <div class="input-group-prepend peertube-select-container">
11 <select [(ngModel)]="resolutionId"> 22 <select *ngIf="type === 'video'" [(ngModel)]="resolutionId">
12 <option *ngFor="let file of getVideoFiles()" [value]="file.resolution.id">{{ file.resolution.label }}</option> 23 <option *ngFor="let file of getVideoFiles()" [value]="file.resolution.id">{{ file.resolution.label }}</option>
13 </select> 24 </select>
25 <select *ngIf="type === 'subtitles'" [(ngModel)]="subtitleLanguageId">
26 <option *ngFor="let caption of videoCaptions" [value]="caption.language.id">{{ caption.language.label }}</option>
27 </select>
14 </div> 28 </div>
15 <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getLink()" /> 29 <input #urlInput (click)="urlInput.select()" type="text" class="form-control input-sm readonly" readonly [value]="getLink()" />
16 <div class="input-group-append"> 30 <div class="input-group-append">
@@ -21,7 +35,7 @@
21 </div> 35 </div>
22 </div> 36 </div>
23 37
24 <div class="download-type"> 38 <div class="download-type" *ngIf="type === 'video'">
25 <div class="peertube-radio-container"> 39 <div class="peertube-radio-container">
26 <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct"> 40 <input type="radio" name="download" id="download-direct" [(ngModel)]="downloadType" value="direct">
27 <label i18n for="download-direct">Direct download</label> 41 <label i18n for="download-direct">Direct download</label>