mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-10260] Add required format to search date range (#11423)
This commit is contained in:
@@ -446,11 +446,11 @@
|
||||
"IN_LAST": "Value required",
|
||||
"START_DATE": {
|
||||
"REQUIRED": "Start Date required",
|
||||
"INVALID_FORMAT": "Start Date invalid"
|
||||
"INVALID_FORMAT": "Start Date invalid. The date must be in the format '{{ requiredFormat }}'"
|
||||
},
|
||||
"END_DATE": {
|
||||
"REQUIRED": "End Date required",
|
||||
"INVALID_FORMAT": "End Date invalid"
|
||||
"INVALID_FORMAT": "End Date invalid. The date must be in the format '{{ requiredFormat }}'"
|
||||
}
|
||||
},
|
||||
"ARIA_LABEL": {
|
||||
|
||||
+2
-2
@@ -42,9 +42,9 @@
|
||||
<mat-datepicker-toggle matSuffix [for]="picker" data-automation-id="date-range-between-datepicker-toggle" />
|
||||
<mat-date-range-picker #picker />
|
||||
|
||||
<mat-error *ngIf="betweenStartDateFormControl.errors?.invalidDate">{{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.START_DATE.INVALID_FORMAT' | translate }}</mat-error>
|
||||
<mat-error *ngIf="betweenStartDateFormControl.errors?.invalidDate">{{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.START_DATE.INVALID_FORMAT' | translate: { requiredFormat: dateFormat } }}</mat-error>
|
||||
<mat-error *ngIf="betweenStartDateFormControl.errors?.required">{{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.START_DATE.REQUIRED' | translate }}</mat-error>
|
||||
<mat-error *ngIf="betweenEndDateFormControl.errors?.invalidDate">{{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.END_DATE.INVALID_FORMAT' | translate }}</mat-error>
|
||||
<mat-error *ngIf="betweenEndDateFormControl.errors?.invalidDate">{{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.END_DATE.INVALID_FORMAT' | translate : { requiredFormat: dateFormat } }}</mat-error>
|
||||
<mat-error *ngIf="betweenEndDateFormControl.errors?.required">{{ 'SEARCH.DATE_RANGE_ADVANCED.ERROR.END_DATE.REQUIRED' | translate }}</mat-error>
|
||||
</mat-form-field>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user