Use date-selector component to display errors related to date fields
This commit is contained in:
@@ -170,6 +170,22 @@ export default {
|
||||
return 31
|
||||
}
|
||||
},
|
||||
|
||||
minError: function() {
|
||||
if (this.isDateComplete) {
|
||||
return new Date(this.mindate) > new Date(this.formattedDate)
|
||||
}
|
||||
|
||||
return false
|
||||
},
|
||||
|
||||
maxError: function() {
|
||||
if (this.isDateComplete) {
|
||||
return new Date(this.maxdate) < new Date(this.formattedDate)
|
||||
}
|
||||
|
||||
return false
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user