Tweak formatting on user edit page

This commit is contained in:
Jonathan Reinink 2020-09-24 13:40:04 -04:00
parent 47aab49c64
commit e818f81539

View file

@ -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() {