diff options
Diffstat (limited to 'client/src/app/shared/forms/form-validators/custom-config.ts')
-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 17ae0e75c..9e3fa98d8 100644 --- a/client/src/app/shared/forms/form-validators/custom-config.ts +++ b/client/src/app/shared/forms/form-validators/custom-config.ts | |||
@@ -1,5 +1,12 @@ | |||
1 | import { Validators } from '@angular/forms' | 1 | import { Validators } from '@angular/forms' |
2 | 2 | ||
3 | export const INSTANCE_NAME = { | ||
4 | VALIDATORS: [ Validators.required ], | ||
5 | MESSAGES: { | ||
6 | 'required': 'Instance name is required.', | ||
7 | } | ||
8 | } | ||
9 | |||
3 | export const CACHE_PREVIEWS_SIZE = { | 10 | export const CACHE_PREVIEWS_SIZE = { |
4 | VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], | 11 | VALIDATORS: [ Validators.required, Validators.min(1), Validators.pattern('[0-9]+') ], |
5 | MESSAGES: { | 12 | MESSAGES: { |