From 3bd17416a8b5bff4b3da842373052e99a6a784ec Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Thu, 17 Oct 2024 08:28:23 +0000 Subject: [PATCH] Bug 38010: Add delete contact button --- .../prog/js/vue/components/Vendors/VendorContacts.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorContacts.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorContacts.vue index d02d2875ba7..148abac87b2 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorContacts.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorContacts.vue @@ -262,6 +262,10 @@ + + {{ $__("Delete contact") }} @@ -293,6 +297,9 @@ export default { claimissues: false, }) }, + deleteContact(i) { + this.vendor.contacts.splice(i, 1) + }, }, } -- 2.39.3 (Apple Git-146)