diff --git a/resources/js/components/Form.js b/resources/js/components/Form.js index 81f79158..f12411c1 100644 --- a/resources/js/components/Form.js +++ b/resources/js/components/Form.js @@ -77,13 +77,13 @@ class Form { /** * Reset the form fields. */ - // reset () { - // Object.keys(this) - // .filter(key => !Form.ignore.includes(key)) - // .forEach(key => { - // this[key] = deepCopy(this.originalData[key]) - // }) - // } + reset () { + Object.keys(this) + .filter(key => !Form.ignore.includes(key)) + .forEach(key => { + this[key] = deepCopy(this.originalData[key]) + }) + } /** * Submit the form via a GET request. @@ -267,6 +267,6 @@ class Form { Form.routes = {} Form.errorMessage = 'Something went wrong. Please try again.' -Form.ignore = ['isBusy', /*'successful', 'errors',*/ 'originalData'] +Form.ignore = ['isBusy', /*'successful'*/, 'errors', 'originalData'] export default Form diff --git a/resources/js/views/auth/Login.vue b/resources/js/views/auth/Login.vue index e5bce629..cb09863b 100644 --- a/resources/js/views/auth/Login.vue +++ b/resources/js/views/auth/Login.vue @@ -7,16 +7,16 @@
{{ validationErrors.email.toString() }}
+{{ validationErrors.password.toString() }}
+