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 <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-11-13 09:58:42 +01:00 committed by Lucas Gass
parent 2721b0516d
commit 1085f9a18b
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 0 deletions

View File

@ -788,6 +788,7 @@ export default {
return [
{
name: $__("Contacts"),
hidden: vendor => !!vendor.contacts?.length,
showElement: {
type: "table",
columnData: "contacts",