Commit 4ba7ca23 authored by MARCO Jonathan's avatar MARCO Jonathan
Browse files

馃悰 Fix the date validation

parent bbd18f3a
......@@ -113,20 +113,22 @@ export default Vue.extend({
mixins: [tabValidationMixin],
data: (): componentData => ({
dateUnitOptions: [
// @ts-ignore
{ value: 'days', label: this._uct('builder.tabs.validation.date.days') },
// @ts-ignore
{ value: 'weeks', label: this._uct('builder.tabs.validation.date.weeks') },
// @ts-ignore
{ value: 'months', label: this._uct('builder.tabs.validation.date.months') },
// @ts-ignore
{ value: 'years', label: this._uct('builder.tabs.validation.date.years') },
],
dateMinErrorMessages: [],
dateMaxErrorMessages: [],
}),
data: function(): componentData {
return {
dateUnitOptions: [
// @ts-ignore
{ value: 'days', label: this._uct('builder.tabs.validation.date.days') },
// @ts-ignore
{ value: 'weeks', label: this._uct('builder.tabs.validation.date.weeks') },
// @ts-ignore
{ value: 'months', label: this._uct('builder.tabs.validation.date.months') },
// @ts-ignore
{ value: 'years', label: this._uct('builder.tabs.validation.date.years') },
],
dateMinErrorMessages: [],
dateMaxErrorMessages: [],
};
},
computed: {
dateMinError(): boolean {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment