1 import { Validators } from '@angular/forms'
3 export const VIDEO_NAME = {
4 VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(120) ],
6 'required': 'Video name is required.',
7 'minlength': 'Video name must be at least 3 characters long.',
8 'maxlength': 'Video name cannot be more than 120 characters long.'
12 export const VIDEO_PRIVACY = {
13 VALIDATORS: [ Validators.required ],
15 'required': 'Video privacy is required.'
19 export const VIDEO_CATEGORY = {
24 export const VIDEO_LICENCE = {
29 export const VIDEO_LANGUAGE = {
34 export const VIDEO_CHANNEL = {
35 VALIDATORS: [ Validators.required ],
37 'required': 'Video channel is required.'
41 export const VIDEO_DESCRIPTION = {
42 VALIDATORS: [ Validators.minLength(3), Validators.maxLength(3000) ],
44 'minlength': 'Video description must be at least 3 characters long.',
45 'maxlength': 'Video description cannot be more than 3000 characters long.'
49 export const VIDEO_TAGS = {
50 VALIDATORS: [ Validators.minLength(2), Validators.maxLength(30) ],
52 'minlength': 'A tag should be more than 2 characters long.',
53 'maxlength': 'A tag should be less than 30 characters long.'