return this.serverConfig.videoCaption.file.size.max
}
+ getReactiveFileButtonTooltip () {
+ return `(extensions: ${this.videoCaptionExtensions.join(', ')})`
+ }
+
ngOnInit () {
this.serverService.getVideoLanguages()
.subscribe(languages => this.videoCaptionLanguages = languages)
return languageId && this.existingCaptions.includes(languageId)
}
- async addCaption () {
+ addCaption () {
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'],
+ action: 'CREATE'
})
this.hide()