@Output() captionAdded = new EventEmitter<VideoCaptionEdit>()
- @ViewChild('modal') modal: ElementRef
+ @ViewChild('modal', { static: true }) modal: ElementRef
videoCaptionLanguages: VideoConstant<string>[] = []
}
async addCaption () {
- this.hide()
-
const languageId = this.form.value[ 'language' ]
const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId)
captionfile: this.form.value[ 'captionfile' ]
})
- this.form.reset()
+ this.hide()
}
}