aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/form-validators/video-channel.ts
blob: 6233d17f76ce33d9e85900ce223af392cb1d3798 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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(250)
  ],
  MESSAGES: {
    'minlength': 'Description must be at least 3 characters long.',
    'maxlength': 'Description cannot be more than 250 characters long.'
  }
}
export const VIDEO_CHANNEL_SUPPORT = {
  VALIDATORS: [
    Validators.minLength(3),
    Validators.maxLength(300)
  ],
  MESSAGES: {
    'minlength': 'Support text must be at least 3 characters long.',
    'maxlength': 'Support text cannot be more than 300 characters long.'
  }
}