mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2997] The meaning of the range fields is not clear (#3338)
* [ADF-2997] restrict 'to' field not to allow dates in the future * [ADF-2997] more clear labels for start and end date fields the translation team will decide what will be the best values for the date fields
This commit is contained in:
committed by
Eugenio Romano
parent
9e3a4aa49f
commit
4e70a116eb
@@ -69,7 +69,7 @@ export class SearchDateRangeComponent implements SearchWidget, OnInit {
|
||||
id: string;
|
||||
settings?: SearchWidgetSettings;
|
||||
context?: SearchQueryBuilderService;
|
||||
maxFrom: any;
|
||||
maxDate: any;
|
||||
datePickerDateFormat = DEFAULT_FORMAT_DATE;
|
||||
|
||||
constructor(private dateAdapter: DateAdapter<Moment>,
|
||||
@@ -99,7 +99,7 @@ export class SearchDateRangeComponent implements SearchWidget, OnInit {
|
||||
to: this.to
|
||||
});
|
||||
|
||||
this.maxFrom = moment().startOf('day');
|
||||
this.maxDate = moment().startOf('day');
|
||||
}
|
||||
|
||||
apply(model: { from: string, to: string }, isValid: boolean) {
|
||||
|
Reference in New Issue
Block a user