Skip to content

Commit 1085f9a

Browse files
jouburicofreak
authored andcommitted
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: <fieldset.rows> but never did. Signed-off-by: Lucas Gass <[email protected]>
1 parent 2721b05 commit 1085f9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ export default {
788788
return [
789789
{
790790
name: $__("Contacts"),
791+
hidden: vendor => !!vendor.contacts?.length,
791792
showElement: {
792793
type: "table",
793794
columnData: "contacts",

0 commit comments

Comments
 (0)