From 1085f9a18bcd0fc296f21cf778c3be8e779a368f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Nov 2025 09:58:42 +0100 Subject: [PATCH] Bug 40942: Hide the 'Contacts' block if nothing to display If there is no contact we should hide the "Contacts" block on the "show" view. Fixes VueFramework_spec.ts AssertionError: Timed out retrying after 10000ms: Expected to find content: 'Contracts' within the element: but never did. Signed-off-by: Lucas Gass --- .../prog/js/vue/components/Vendors/VendorResource.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue index 24b16e98f6..a86135dfba 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue @@ -788,6 +788,7 @@ export default { return [ { name: $__("Contacts"), + hidden: vendor => !!vendor.contacts?.length, showElement: { type: "table", columnData: "contacts",