mirror of
https://github.com/inventree/InvenTree.git
synced 2026-08-29 16:36:47 +00:00
update auto allocation button tooltip and visibility logic (#12720)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
co-authored by
Oliver
parent
ccf34e4b16
commit
af4c4220f5
@@ -889,8 +889,13 @@ export default function BuildLineTable({
|
||||
<ActionButton
|
||||
key='auto-allocate'
|
||||
icon={<IconWand />}
|
||||
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
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user