Commit e818f815 by Jonathan Reinink

Tweak formatting on user edit page

1 parent 47aab49c
Showing with 1 additions and 3 deletions
...@@ -86,15 +86,13 @@ export default { ...@@ -86,15 +86,13 @@ export default {
this.$inertia.post(this.route('users.update', this.user.id), data, { this.$inertia.post(this.route('users.update', this.user.id), data, {
onStart: () => this.sending = true, onStart: () => this.sending = true,
onFinish: () => this.sending = false,
onSuccess: () => { onSuccess: () => {
if (Object.keys(this.$page.errors).length === 0) { if (Object.keys(this.$page.errors).length === 0) {
this.form.photo = null this.form.photo = null
this.form.password = null this.form.password = null
} }
}, },
onFinish: () => {
this.sending = false
},
}) })
}, },
destroy() { destroy() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!