Tweak formatting on user edit page
This commit is contained in:
parent
47aab49c64
commit
e818f81539
|
@ -86,15 +86,13 @@ export default {
|
|||
|
||||
this.$inertia.post(this.route('users.update', this.user.id), data, {
|
||||
onStart: () => this.sending = true,
|
||||
onFinish: () => this.sending = false,
|
||||
onSuccess: () => {
|
||||
if (Object.keys(this.$page.errors).length === 0) {
|
||||
this.form.photo = null
|
||||
this.form.password = null
|
||||
}
|
||||
},
|
||||
onFinish: () => {
|
||||
this.sending = false
|
||||
},
|
||||
})
|
||||
},
|
||||
destroy() {
|
||||
|
|
Loading…
Reference in New Issue