From 03506238664ba897414a11fab5aec672c7c8b4df Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Sep 2025 10:50:31 +1000 Subject: [PATCH] [UI] Display Stock link (#10350) (#10351) - Display "link" for stock item (cherry picked from commit 843dd929017d66c11fe51d9f3a85b21810985b30) Co-authored-by: Oliver --- src/frontend/src/pages/stock/StockDetail.tsx | 30 +++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/src/frontend/src/pages/stock/StockDetail.tsx b/src/frontend/src/pages/stock/StockDetail.tsx index 5b2c661787..5648bda33e 100644 --- a/src/frontend/src/pages/stock/StockDetail.tsx +++ b/src/frontend/src/pages/stock/StockDetail.tsx @@ -173,17 +173,12 @@ export default function StockDetail() { stockitem.status_custom_key == stockitem.status }, { - type: 'text', - name: 'updated', - icon: 'calendar', - label: t`Last Updated` - }, - { - type: 'text', - name: 'stocktake', - icon: 'calendar', - label: t`Last Stocktake`, - hidden: !stockitem.stocktake + type: 'link', + name: 'link', + label: t`Link`, + external: true, + copy: true, + hidden: !stockitem.link } ]; @@ -415,6 +410,19 @@ export default function StockDetail() { icon: 'part', label: t`Packaging`, hidden: !stockitem.packaging + }, + { + type: 'text', + name: 'updated', + icon: 'calendar', + label: t`Last Updated` + }, + { + type: 'text', + name: 'stocktake', + icon: 'calendar', + label: t`Last Stocktake`, + hidden: !stockitem.stocktake } ];