aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-03-22 17:41:39 +0100
committerChocobozzz <me@florianbigard.com>2022-03-22 17:41:39 +0100
commita2c5cd4a03cfe792a5f7341b33115002c448d3e4 (patch)
tree77ef3de463504659850cf1fd55148710a56cbe21 /client/src/app/+videos
parent92e66e04f7f51d37b465cff442ce47f6d6d7cadd (diff)
downloadPeerTube-a2c5cd4a03cfe792a5f7341b33115002c448d3e4.tar.gz
PeerTube-a2c5cd4a03cfe792a5f7341b33115002c448d3e4.tar.zst
PeerTube-a2c5cd4a03cfe792a5f7341b33115002c448d3e4.zip
Add reset button for file inputs in studio page
Diffstat (limited to 'client/src/app/+videos')
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html2
-rw-r--r--client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html
index 092952204..a3f0dbdb5 100644
--- a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html
+++ b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html
@@ -23,7 +23,7 @@
23 <my-reactive-file 23 <my-reactive-file
24 formControlName="captionfile" inputName="captionfile" i18n-inputLabel inputLabel="Select the caption file" 24 formControlName="captionfile" inputName="captionfile" i18n-inputLabel inputLabel="Select the caption file"
25 [extensions]="videoCaptionExtensions" [maxFileSize]="videoCaptionMaxSize" [displayFilename]="true" 25 [extensions]="videoCaptionExtensions" [maxFileSize]="videoCaptionMaxSize" [displayFilename]="true"
26 i18n-ngbTooltip [ngbTooltip]="'(extensions: ' + videoCaptionExtensions.join(', ') + ')'" 26 [buttonTooltip]="getReactiveFileButtonTooltip()"
27 ></my-reactive-file> 27 ></my-reactive-file>
28 </div> 28 </div>
29 29
diff --git a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.ts b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.ts
index 6deadfcbe..95d83b131 100644
--- a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.ts
+++ b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.ts
@@ -41,6 +41,10 @@ export class VideoCaptionAddModalComponent extends FormReactive implements OnIni
41 return this.serverConfig.videoCaption.file.size.max 41 return this.serverConfig.videoCaption.file.size.max
42 } 42 }
43 43
44 getReactiveFileButtonTooltip () {
45 return `(extensions: ${this.videoCaptionExtensions.join(', ')})`
46 }
47
44 ngOnInit () { 48 ngOnInit () {
45 this.serverService.getVideoLanguages() 49 this.serverService.getVideoLanguages()
46 .subscribe(languages => this.videoCaptionLanguages = languages) 50 .subscribe(languages => this.videoCaptionLanguages = languages)