From e818f815392f5d1b8df80373295c1fb02d531e89 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Thu, 24 Sep 2020 13:40:04 -0400 Subject: [PATCH] Tweak formatting on user edit page --- resources/js/Pages/Users/Edit.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/js/Pages/Users/Edit.vue b/resources/js/Pages/Users/Edit.vue index 0e52da4..d2c3fea 100644 --- a/resources/js/Pages/Users/Edit.vue +++ b/resources/js/Pages/Users/Edit.vue @@ -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() {