mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	[PUI] Build output labels (#8261)
* Enable printing actions from "build order output" table * Adjust action order
This commit is contained in:
		| @@ -79,9 +79,7 @@ export function ActionDropdown({ | |||||||
|               p="0" |               p="0" | ||||||
|               size="sm" |               size="sm" | ||||||
|               rightSection={ |               rightSection={ | ||||||
|                 noindicator || disabled ? null : ( |                 noindicator ? null : <IconChevronDown stroke={1.5} /> | ||||||
|                   <IconChevronDown stroke={1.5} /> |  | ||||||
|                 ) |  | ||||||
|               } |               } | ||||||
|               styles={{ |               styles={{ | ||||||
|                 section: { margin: 0 } |                 section: { margin: 0 } | ||||||
|   | |||||||
| @@ -231,12 +231,6 @@ export default function BuildOutputTable({ | |||||||
|  |  | ||||||
|   const tableActions = useMemo(() => { |   const tableActions = useMemo(() => { | ||||||
|     return [ |     return [ | ||||||
|       <AddItemButton |  | ||||||
|         key="add-build-output" |  | ||||||
|         tooltip={t`Add Build Output`} |  | ||||||
|         hidden={!user.hasAddRole(UserRoles.build)} |  | ||||||
|         onClick={addBuildOutput.open} |  | ||||||
|       />, |  | ||||||
|       <ActionButton |       <ActionButton | ||||||
|         key="complete-selected-outputs" |         key="complete-selected-outputs" | ||||||
|         tooltip={t`Complete selected outputs`} |         tooltip={t`Complete selected outputs`} | ||||||
| @@ -269,6 +263,12 @@ export default function BuildOutputTable({ | |||||||
|           setSelectedOutputs(table.selectedRecords); |           setSelectedOutputs(table.selectedRecords); | ||||||
|           cancelBuildOutputsForm.open(); |           cancelBuildOutputsForm.open(); | ||||||
|         }} |         }} | ||||||
|  |       />, | ||||||
|  |       <AddItemButton | ||||||
|  |         key="add-build-output" | ||||||
|  |         tooltip={t`Add Build Output`} | ||||||
|  |         hidden={!user.hasAddRole(UserRoles.build)} | ||||||
|  |         onClick={addBuildOutput.open} | ||||||
|       /> |       /> | ||||||
|     ]; |     ]; | ||||||
|   }, [user, table.selectedRecords, table.hasSelectedRecords]); |   }, [user, table.selectedRecords, table.hasSelectedRecords]); | ||||||
| @@ -449,6 +449,8 @@ export default function BuildOutputTable({ | |||||||
|             is_building: true, |             is_building: true, | ||||||
|             build: buildId |             build: buildId | ||||||
|           }, |           }, | ||||||
|  |           enableLabels: true, | ||||||
|  |           enableReports: true, | ||||||
|           modelType: ModelType.stockitem, |           modelType: ModelType.stockitem, | ||||||
|           dataFormatter: formatRecords, |           dataFormatter: formatRecords, | ||||||
|           tableActions: tableActions, |           tableActions: tableActions, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user