diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/custom-config.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/custom-config.ts b/client/src/app/shared/forms/form-validators/custom-config.ts index a0966a9a7..c9cef2e09 100644 --- a/client/src/app/shared/forms/form-validators/custom-config.ts +++ b/client/src/app/shared/forms/form-validators/custom-config.ts | |||
@@ -7,6 +7,13 @@ export const INSTANCE_NAME = { | |||
7 | } | 7 | } |
8 | } | 8 | } |
9 | 9 | ||
10 | export const INSTANCE_SHORT_DESCRIPTION = { | ||
11 | VALIDATORS: [ Validators.max(250) ], | ||
12 | MESSAGES: { | ||
13 | 'max': 'Short description should not be longer than 250 characters.' | ||
14 | } | ||
15 | } | ||
16 | |||
10 | export const CACHE_PREVIEWS_SIZE = { | 17 | export const CACHE_PREVIEWS_SIZE = { |
11 | VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], | 18 | VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], |
12 | MESSAGES: { | 19 | MESSAGES: { |