mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-1679] added translation for form field validators (#2455)
* [ADF-1679] added translation for form field validators * [ADF-1679] fixed typeahead test
This commit is contained in:
@@ -26,7 +26,7 @@ export class DemoFieldValidator implements FormFieldValidator {
|
||||
validate(field: FormFieldModel): boolean {
|
||||
if (this.isSupported(field)) {
|
||||
if (field.value && field.value.toLowerCase() === 'admin') {
|
||||
field.validationSummary = 'Sorry, the value cannot be "admin".';
|
||||
field.validationSummary.message = 'Sorry, the value cannot be "admin".';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user