xref: /openbmc/webui-vue/src/components/Mixins/VuelidateMixin.js (revision 330585760167d233a67a9301be991ba26b8e57df)
1const VuelidateMixin = {
2  methods: {
3    getValidationState(model) {
4      const { $dirty, $error } = model;
5      return $dirty ? !$error : null;
6    }
7  }
8};
9
10export default VuelidateMixin;
11