aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-17 13:38:01 +0100
committerChocobozzz <me@florianbigard.com>2018-12-17 13:38:01 +0100
commitc22419dd265c0c7185bf4197a1cb286eb3d8ebc0 (patch)
tree7739e36e83f7acf83d462e3f4a4548ea778fb298 /client/src
parent73a48728ee708d7b7a1ae6ae3795e4af7b6af135 (diff)
downloadPeerTube-c22419dd265c0c7185bf4197a1cb286eb3d8ebc0.tar.gz
PeerTube-c22419dd265c0c7185bf4197a1cb286eb3d8ebc0.tar.zst
PeerTube-c22419dd265c0c7185bf4197a1cb286eb3d8ebc0.zip
Fix adding captions to a video
Diffstat (limited to 'client/src')
-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}