[ACS-10260] Add required format to search date range (#11423)

This commit is contained in:
Michal Kinas
2025-12-03 10:37:14 +01:00
committed by GitHub
parent 40df22b576
commit e6fe929b02
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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": {
@@ -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>