Fix short description validator
This commit is contained in:
parent
6c38f40d96
commit
c5fe343411
|
@ -9,9 +9,9 @@ export const INSTANCE_NAME_VALIDATOR: BuildFormValidator = {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = {
|
export const INSTANCE_SHORT_DESCRIPTION_VALIDATOR: BuildFormValidator = {
|
||||||
VALIDATORS: [ Validators.max(250) ],
|
VALIDATORS: [ Validators.maxLength(250) ],
|
||||||
MESSAGES: {
|
MESSAGES: {
|
||||||
max: $localize`Short description should not be longer than 250 characters.`
|
maxlength: $localize`Short description should not be longer than 250 characters.`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue