Fix adding captions to a video

pull/1830/head
Chocobozzz 2018-12-17 13:38:01 +01:00
parent 73a48728ee
commit c22419dd26
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 3 deletions

View File

@ -72,8 +72,6 @@ export class VideoCaptionAddModalComponent extends FormReactive implements OnIni
}
async addCaption () {
this.hide()
const languageId = this.form.value[ 'language' ]
const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId)
@ -82,6 +80,6 @@ export class VideoCaptionAddModalComponent extends FormReactive implements OnIni
captionfile: this.form.value[ 'captionfile' ]
})
this.form.reset()
this.hide()
}
}