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 ]);