From 0dea01cf22d435a4d2c3c360eb427bf4f71de2de 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 26f655b95a2..26a98c8f646 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.48.1