diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/videos/+video-edit/shared/video-caption-add-modal.component.ts | 4 |
1 files changed, 1 insertions, 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 | |||
72 | } | 72 | } |
73 | 73 | ||
74 | async addCaption () { | 74 | async addCaption () { |
75 | this.hide() | ||
76 | |||
77 | const languageId = this.form.value[ 'language' ] | 75 | const languageId = this.form.value[ 'language' ] |
78 | const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId) | 76 | const languageObject = this.videoCaptionLanguages.find(l => l.id === languageId) |
79 | 77 | ||
@@ -82,6 +80,6 @@ export class VideoCaptionAddModalComponent extends FormReactive implements OnIni | |||
82 | captionfile: this.form.value[ 'captionfile' ] | 80 | captionfile: this.form.value[ 'captionfile' ] |
83 | }) | 81 | }) |
84 | 82 | ||
85 | this.form.reset() | 83 | this.hide() |
86 | } | 84 | } |
87 | } | 85 | } |