blob: 8274df67d7f6cf36003cbb8d9a5f4e6ec2a24286 [file] [log] [blame]
Yoshie Muranaka4b0fc1d2020-01-06 07:36:16 -08001const VuelidateMixin = {
2 methods: {
3 getValidationState(model) {
jason westoverd36ac8a2025-11-03 20:58:59 -06004 if (!model) return null;
Yoshie Muranaka4b0fc1d2020-01-06 07:36:16 -08005 const { $dirty, $error } = model;
6 return $dirty ? !$error : null;
Derick Montague602e98a2020-10-21 16:20:00 -05007 },
8 },
Yoshie Muranaka4b0fc1d2020-01-06 07:36:16 -08009};
10
11export default VuelidateMixin;