From 45371b2d4229fd7678c52bf15c678aecb8d0f01a 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 Signed-off-by: Michaela Sieber Signed-off-by: Jonathan Druart --- .../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.34.1