From c24ac1c18e26b6a24a4d294744908fb0c53ddf3c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 May 2017 14:29:58 +0200 Subject: Fix unset video language on video update --- client/src/app/videos/video-edit/video-update.component.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'client/src/app/videos/video-edit/video-update.component.ts') diff --git a/client/src/app/videos/video-edit/video-update.component.ts b/client/src/app/videos/video-edit/video-update.component.ts index adb3d295c..933132cc0 100644 --- a/client/src/app/videos/video-edit/video-update.component.ts +++ b/client/src/app/videos/video-edit/video-update.component.ts @@ -98,7 +98,17 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { ); } + checkForm() { + this.forceCheck(); + + return this.form.valid; + } + update() { + if (this.checkForm() === false) { + return; + } + this.video.patch(this.form.value); this.videoService.updateVideo(this.video) -- cgit v1.2.3