From 7478a2853a521c35ca7fa4f0ff941cf4838a958e Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 28 Nov 2024 21:48:19 +0100 Subject: [PATCH] [PUI] Fix stock item state rendering (#8572) * fix rendering of stock status * update api to support custom status * Revert "update api to support custom status" This reverts commit e7ff5aa3984d6824d7cb29586aa22312cd8a76c6. --- src/frontend/src/forms/StockForms.tsx | 5 ++++- src/frontend/src/pages/stock/StockDetail.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/forms/StockForms.tsx b/src/frontend/src/forms/StockForms.tsx index 1788aca06ec1..4cc010c7e9c1 100644 --- a/src/frontend/src/forms/StockForms.tsx +++ b/src/frontend/src/forms/StockForms.tsx @@ -531,7 +531,10 @@ function StockOperationsRow({ {stockString} - + {!merge && ( diff --git a/src/frontend/src/pages/stock/StockDetail.tsx b/src/frontend/src/pages/stock/StockDetail.tsx index 0d9dea4bf8c1..b9aedbcfa7a1 100644 --- a/src/frontend/src/pages/stock/StockDetail.tsx +++ b/src/frontend/src/pages/stock/StockDetail.tsx @@ -132,7 +132,7 @@ export default function StockDetail() { hidden: !part.IPN }, { - name: 'status', + name: 'status_custom_key', type: 'status', label: t`Stock Status`, model: ModelType.stockitem