Fix support field validation in video edit
authorChocobozzz <me@florianbigard.com>
Wed, 21 Feb 2018 17:23:20 +0000 (18:23 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 21 Feb 2018 17:23:20 +0000 (18:23 +0100)
client/src/app/videos/+video-edit/shared/video-edit.component.ts

index c2690655160af2df285dabf9328bd28899b6922e..6ab1a4a2411c2245354d0e5403b8fd0523c04345 100644 (file)
@@ -85,7 +85,7 @@ export class VideoEditComponent implements OnInit {
     this.form.addControl('tags', new FormControl(''))
     this.form.addControl('thumbnailfile', new FormControl(''))
     this.form.addControl('previewfile', new FormControl(''))
-    this.form.addControl('support', new FormControl(''))
+    this.form.addControl('support', new FormControl('', VIDEO_SUPPORT.VALIDATORS))
   }
 
   ngOnInit () {