From d07137b90b2b2b0c1e93a6f0e7bf8719b133027c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Mar 2017 21:11:37 +0200 Subject: Client: add support for video licences --- client/src/app/shared/forms/form-validators/video.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'client/src/app/shared/forms/form-validators/video.ts') diff --git a/client/src/app/shared/forms/form-validators/video.ts b/client/src/app/shared/forms/form-validators/video.ts index de5112238..50d7304b5 100644 --- a/client/src/app/shared/forms/form-validators/video.ts +++ b/client/src/app/shared/forms/form-validators/video.ts @@ -8,12 +8,21 @@ export const VIDEO_NAME = { 'maxlength': 'Video name cannot be more than 50 characters long.' } }; + export const VIDEO_CATEGORY = { VALIDATORS: [ Validators.required ], MESSAGES: { 'required': 'Video category is required.' } }; + +export const VIDEO_LICENCE = { + VALIDATORS: [ Validators.required ], + MESSAGES: { + 'required': 'Video licence is required.' + } +}; + export const VIDEO_DESCRIPTION = { VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(250) ], MESSAGES: { -- cgit v1.2.3