From af4c4220f5da6fae50609a610a0f6333480e5185 Mon Sep 17 00:00:00 2001 From: Alonso Lopez-Valdez Date: Thu, 27 Aug 2026 15:59:23 -0700 Subject: [PATCH] update auto allocation button tooltip and visibility logic (#12720) Co-authored-by: Oliver --- src/frontend/src/tables/build/BuildLineTable.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/tables/build/BuildLineTable.tsx b/src/frontend/src/tables/build/BuildLineTable.tsx index aaface6238..2c97ad595d 100644 --- a/src/frontend/src/tables/build/BuildLineTable.tsx +++ b/src/frontend/src/tables/build/BuildLineTable.tsx @@ -889,8 +889,13 @@ export default function BuildLineTable({ } - tooltip={t`Auto Allocate Stock`} - hidden={!visible || hasOutput} + tooltip={ + production + ? t`Auto Allocate Stock` + : t`Build order must be issued before stock can be allocated` + } + hidden={!canEdit || !isActive || hasOutput} + disabled={!production} color='blue' onClick={() => { setAutoAllocateInitialData({ @@ -969,6 +974,7 @@ export default function BuildLineTable({ build, buildStatus, hasOutput, + isActive, table.hasSelectedRecords, table.selectedRecords ]);