diff --git a/resources/js/Pages/Contacts/Edit.vue b/resources/js/Pages/Contacts/Edit.vue
index 0c803fd..7c09514 100644
--- a/resources/js/Pages/Contacts/Edit.vue
+++ b/resources/js/Pages/Contacts/Edit.vue
@@ -9,29 +9,29 @@
This contact has been deleted.
@@ -66,8 +66,7 @@ export default {
remember: 'form',
data() {
return {
- sending: false,
- form: {
+ form: this.$inertia.form({
first_name: this.contact.first_name,
last_name: this.contact.last_name,
organization_id: this.contact.organization_id,
@@ -78,16 +77,10 @@ export default {
region: this.contact.region,
country: this.contact.country,
postal_code: this.contact.postal_code,
- },
+ }),
}
},
methods: {
- submit() {
- this.$inertia.put(this.route('contacts.update', this.contact.id), this.form, {
- onStart: () => this.sending = true,
- onFinish: () => this.sending = false,
- })
- },
destroy() {
if (confirm('Are you sure you want to delete this contact?')) {
this.$inertia.delete(this.route('contacts.destroy', this.contact.id))