2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-30 18:50:53 +00:00

[PUI/Feature] Integrate Part "Default Location" into UX (#5972)

* Add default parts to location page

* Fix name strings

* Add Stock Transfer modal

* Add ApiForm Table field

* temp

* Add stock transfer form to part, stock item and location

* All stock operations for Item, Part, and Location added (except order new)

* Add default_location category traversal, and initial PO Line Item Receive form

* .

* Remove debug values

* Added PO line receive form

* Add functionality to PO receive extra fields

* .

* Forgot to bump API version

* Add Category Default to details panel

* Fix stockItem query count

* Fix reviewed issues

* .

* .

* .

* Prevent root category from checking parent for default location
This commit is contained in:
Lavissa
2024-03-15 02:06:18 +01:00
committed by GitHub
parent 6abd33f060
commit 0196dd2f60
22 changed files with 1785 additions and 57 deletions

View File

@ -36,11 +36,13 @@ export type ActionDropdownItem = {
export function ActionDropdown({
icon,
tooltip,
actions
actions,
disabled = false
}: {
icon: ReactNode;
tooltip?: string;
actions: ActionDropdownItem[];
disabled?: boolean;
}) {
const hasActions = useMemo(() => {
return actions.some((action) => !action.hidden);
@ -54,7 +56,12 @@ export function ActionDropdown({
<Indicator disabled={!indicatorProps} {...indicatorProps?.indicator}>
<Menu.Target>
<Tooltip label={tooltip} hidden={!tooltip}>
<ActionIcon size="lg" radius="sm" variant="outline">
<ActionIcon
size="lg"
radius="sm"
variant="outline"
disabled={disabled}
>
{icon}
</ActionIcon>
</Tooltip>