From 259dd796e6d93db8068ec47aac99a560f2818673 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 17 Dec 2018 13:38:01 +0100 Subject: [PATCH] Fix adding captions to a video --- .../+video-edit/shared/video-caption-add-modal.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 eaf819726..1413e7262 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() } } -- 2.41.0