}
show () {
+ this.closingModal = false
+
this.modal.show()
}
hide () {
+ this.closingModal = true
+
this.modal.hide()
}
}
async addCaption () {
- this.closingModal = true
+ this.hide()
const languageId = this.form.value[ 'language' ]
const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId)
this.captionAdded.emit({
language: languageObject,
- captionfile: this.form.value['captionfile']
+ captionfile: this.form.value[ 'captionfile' ]
})
- this.hide()
+ this.form.reset()
}
}