Tweak formatting on user edit page
This commit is contained in:
parent
47aab49c64
commit
e818f81539
1 changed files with 1 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue