aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-17 13:38:01 +0100
committerChocobozzz <me@florianbigard.com>2018-12-17 14:15:29 +0100
commit259dd796e6d93db8068ec47aac99a560f2818673 (patch)
tree5d577cad2be73596d8da1f2f88dda6c11345c2de /client/src/app
parentaf37210c0bd7bf343fe366ddd2b253e2214f5547 (diff)
downloadPeerTube-259dd796e6d93db8068ec47aac99a560f2818673.tar.gz
PeerTube-259dd796e6d93db8068ec47aac99a560f2818673.tar.zst
PeerTube-259dd796e6d93db8068ec47aac99a560f2818673.zip
Fix adding captions to a video
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.ts4
1 files changed, 1 insertions, 3 deletions
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 eaf819726..1413e7262 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
@@ -72,8 +72,6 @@ export class VideoCaptionAddModalComponent extends FormReactive implements OnIni
72 } 72 }
73 73
74 async addCaption () { 74 async addCaption () {
75 this.hide()
76
77 const languageId = this.form.value[ 'language' ] 75 const languageId = this.form.value[ 'language' ]
78 const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId) 76 const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId)
79 77
@@ -82,6 +80,6 @@ export class VideoCaptionAddModalComponent extends FormReactive implements OnIni
82 captionfile: this.form.value[ 'captionfile' ] 80 captionfile: this.form.value[ 'captionfile' ]
83 }) 81 })
84 82
85 this.form.reset() 83 this.hide()
86 } 84 }
87} 85}