aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/video-edit/video-update.component.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-05-05 14:29:58 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-05-05 14:29:58 +0200
commitc24ac1c18e26b6a24a4d294744908fb0c53ddf3c (patch)
treee66ede727fdc92d446f0db829e0592b5f0a2cdd0 /client/src/app/videos/video-edit/video-update.component.ts
parent9eee32fc34ece1cc5e624ae15d81bfede68be33f (diff)
downloadPeerTube-c24ac1c18e26b6a24a4d294744908fb0c53ddf3c.tar.gz
PeerTube-c24ac1c18e26b6a24a4d294744908fb0c53ddf3c.tar.zst
PeerTube-c24ac1c18e26b6a24a4d294744908fb0c53ddf3c.zip
Fix unset video language on video update
Diffstat (limited to 'client/src/app/videos/video-edit/video-update.component.ts')
-rw-r--r--client/src/app/videos/video-edit/video-update.component.ts10
1 files changed, 10 insertions, 0 deletions
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 {
98 ); 98 );
99 } 99 }
100 100
101 checkForm() {
102 this.forceCheck();
103
104 return this.form.valid;
105 }
106
101 update() { 107 update() {
108 if (this.checkForm() === false) {
109 return;
110 }
111
102 this.video.patch(this.form.value); 112 this.video.patch(this.form.value);
103 113
104 this.videoService.updateVideo(this.video) 114 this.videoService.updateVideo(this.video)