X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fforms%2Fform-validators%2Fvideo.ts;h=213ab15db2caa82d0a70c2ab1d7b9d5eef73b979;hb=bcd9f81eff05ffd930c5d8175fb907d4d371432a;hp=32b1f1c2ebf0fb8fc02dffa9f852450a2383caf0;hpb=d412e80e5f748f92118541a5334c14ebd4a90881;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index 32b1f1c2e..213ab15db 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts @@ -28,6 +28,13 @@ export const VIDEO_LANGUAGE = { MESSAGES: {} } +export const VIDEO_CHANNEL = { + VALIDATORS: [ Validators.required ], + MESSAGES: { + 'required': 'Video channel is required.' + } +} + export const VIDEO_DESCRIPTION = { VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], MESSAGES: {