Fix validation of "Services" Settings tab.

This commit is contained in:
Buster Neece 2022-12-24 08:53:12 -06:00
parent a3fd4c5da0
commit 48bf6352f4
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
2 changed files with 5 additions and 2 deletions

View File

@ -38,6 +38,9 @@ const {form, resetForm, v$} = useVuelidateOnForm(
},
{
emailAddress: null
},
{
$stopPropagation: true
}
);

View File

@ -1,10 +1,10 @@
import useVuelidate from "@vuelidate/core";
import {useResettableForm} from "~/components/Form/UseResettableForm";
export function useVuelidateOnForm(validations, blankForm) {
export function useVuelidateOnForm(validations, blankForm, options = {}) {
const {form, resetForm: parentResetForm} = useResettableForm(blankForm);
const v$ = useVuelidate(validations, form);
const v$ = useVuelidate(validations, form, options);
const resetForm = () => {
v$.value.$reset();