diff --git a/resources/js/Pages/Organizations/Edit.vue b/resources/js/Pages/Organizations/Edit.vue index a340d93..186a689 100644 --- a/resources/js/Pages/Organizations/Edit.vue +++ b/resources/js/Pages/Organizations/Edit.vue @@ -9,24 +9,24 @@ This organization has been deleted.
-
+
- - - - - - - + + + + + + + - +
- Update Organization + Update Organization
@@ -90,14 +90,12 @@ export default { TrashedMessage, }, props: { - errors: Object, organization: Object, }, remember: 'form', data() { return { - sending: false, - form: { + form: this.$inertia.form({ name: this.organization.name, email: this.organization.email, phone: this.organization.phone, @@ -106,16 +104,10 @@ export default { region: this.organization.region, country: this.organization.country, postal_code: this.organization.postal_code, - }, + }), } }, methods: { - submit() { - this.$inertia.put(this.route('organizations.update', this.organization.id), this.form, { - onStart: () => this.sending = true, - onFinish: () => this.sending = false, - }) - }, destroy() { if (confirm('Are you sure you want to delete this organization?')) { this.$inertia.delete(this.route('organizations.destroy', this.organization.id))