Showing length error for Payment, Note and ItemUnit Model Views

This commit is contained in:
itsaboutcode
2021-03-02 10:50:27 +05:00
parent 02a2db4417
commit 449968ae88
3 changed files with 24 additions and 0 deletions

View File

@ -68,6 +68,14 @@ export default {
if (!this.$v.formData.name.required) {
return this.$tc('validation.required')
}
if (!this.$v.formData.name.minLength) {
return this.$tc(
'validation.name_min_length',
this.$v.formData.name.$params.minLength.min,
{ count: this.$v.formData.name.$params.minLength.min }
)
}
},
},
validations: {