aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/shared/forms/form-validators/video-channel.ts
blob: 2185cdaa9b81e57dd78b349a4c0fd3564c8f4edf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                        
                             


                                                                   
                                                                       




                                      
                             


                                                                    
                                                                        

   
import { Validators } from '@angular/forms'

export const VIDEO_CHANNEL_DISPLAY_NAME = {
  VALIDATORS: [
    Validators.required,
    Validators.minLength(3),
    Validators.maxLength(120)
  ],
  MESSAGES: {
    'required': 'Display name is required.',
    'minlength': 'Display name must be at least 3 characters long.',
    'maxlength': 'Display name cannot be more than 120 characters long.'
  }
}
export const VIDEO_CHANNEL_DESCRIPTION = {
  VALIDATORS: [
    Validators.minLength(3),
    Validators.maxLength(500)
  ],
  MESSAGES: {
    'minlength': 'Description must be at least 3 characters long.',
    'maxlength': 'Description cannot be more than 500 characters long.'
  }
}
export const VIDEO_CHANNEL_SUPPORT = {
  VALIDATORS: [
    Validators.minLength(3),
    Validators.maxLength(500)
  ],
  MESSAGES: {
    'minlength': 'Support text must be at least 3 characters long.',
    'maxlength': 'Support text cannot be more than 500 characters long.'
  }
}