Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix adding captions to a video

Chocobozzzc22419dd265c
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 eaf8197264..1413e7262b 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
}
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()
}
}