mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-43974 Conditioned error messages
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<mat-error *ngIf="field.validationSummary?.message">
|
||||
{{ field.validationSummary.message | translate:translateParameters }}
|
||||
</mat-error>
|
||||
<mat-error *ngIf="isInvalidFieldRequired() && isTouched()">
|
||||
<mat-error *ngIf="!field.validationSummary?.message && isInvalidFieldRequired() && isTouched()">
|
||||
{{ 'FORM.FIELD.REQUIRED' | translate }}
|
||||
</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
{{ field.validationSummary.message | translate:translateParameters }}
|
||||
</mat-error>
|
||||
}
|
||||
@if (isInvalidFieldRequired() && isTouched()) {
|
||||
@if (!field.validationSummary?.message && isInvalidFieldRequired() && isTouched()) {
|
||||
<mat-error>
|
||||
{{ 'FORM.FIELD.REQUIRED' | translate }}
|
||||
</mat-error>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
{{ field.validationSummary.message | translate:translateParameters }}
|
||||
</mat-error>
|
||||
}
|
||||
@if (isInvalidFieldRequired() && isTouched()) {
|
||||
@if (!field.validationSummary?.message && isInvalidFieldRequired() && isTouched()) {
|
||||
<mat-error>
|
||||
{{ 'FORM.FIELD.REQUIRED' | translate }}
|
||||
</mat-error>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
{{ field.validationSummary.message | translate:translateParameters }}
|
||||
</mat-error>
|
||||
}
|
||||
@if (isInvalidFieldRequired() && isTouched()) {
|
||||
@if (!field.validationSummary?.message && isInvalidFieldRequired() && isTouched()) {
|
||||
<mat-error>
|
||||
{{ 'FORM.FIELD.REQUIRED' | translate }}
|
||||
</mat-error>
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
{{ field.validationSummary.message | translate:translateParameters }}
|
||||
</mat-error>
|
||||
}
|
||||
@if (isInvalidFieldRequired() && isTouched()) {
|
||||
@if (!field.validationSummary?.message && isInvalidFieldRequired() && isTouched()) {
|
||||
<mat-error>
|
||||
{{ 'FORM.FIELD.REQUIRED' | translate }}
|
||||
</mat-error>
|
||||
|
||||
Reference in New Issue
Block a user