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:
parent
2721b0516d
commit
1085f9a18b
|
|
@ -788,6 +788,7 @@ export default {
|
|||
return [
|
||||
{
|
||||
name: $__("Contacts"),
|
||||
hidden: vendor => !!vendor.contacts?.length,
|
||||
showElement: {
|
||||
type: "table",
|
||||
columnData: "contacts",
|
||||
|
|
|
|||
Loading…
Reference in New Issue