From d96b36f0b3cad4172e6626e39fef32010c39bf12 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 2 Apr 2024 14:35:30 +1100 Subject: [PATCH] [PUI] Hide blank contact field (#6909) --- src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx | 3 ++- src/frontend/src/pages/sales/ReturnOrderDetail.tsx | 3 ++- src/frontend/src/pages/sales/SalesOrderDetail.tsx | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx b/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx index aaf1b363bf..74a4fb40aa 100644 --- a/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx +++ b/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx @@ -163,7 +163,8 @@ export default function PurchaseOrderDetail() { name: 'contact', label: t`Contact`, icon: 'user', - copy: true + copy: true, + hidden: !order.contact } // TODO: Project code ]; diff --git a/src/frontend/src/pages/sales/ReturnOrderDetail.tsx b/src/frontend/src/pages/sales/ReturnOrderDetail.tsx index c8b405ecfa..4d951172bc 100644 --- a/src/frontend/src/pages/sales/ReturnOrderDetail.tsx +++ b/src/frontend/src/pages/sales/ReturnOrderDetail.tsx @@ -129,7 +129,8 @@ export default function ReturnOrderDetail() { name: 'contact', label: t`Contact`, icon: 'user', - copy: true + copy: true, + hidden: !order.contact } // TODO: Project code ]; diff --git a/src/frontend/src/pages/sales/SalesOrderDetail.tsx b/src/frontend/src/pages/sales/SalesOrderDetail.tsx index 84db04670e..aecb19c42d 100644 --- a/src/frontend/src/pages/sales/SalesOrderDetail.tsx +++ b/src/frontend/src/pages/sales/SalesOrderDetail.tsx @@ -133,7 +133,8 @@ export default function SalesOrderDetail() { name: 'contact', label: t`Contact`, icon: 'user', - copy: true + copy: true, + hidden: !order.contact } // TODO: Project code ];