mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-30 18:50:53 +00:00
[PUI] stock item delete (#7204)
* Handle stock item delete in PUI * Support deletion of stock location * Delete part category * Some refactoring of the TableField approach - Still needs some work - Code can be made a lot cleaner here * Use mantine components * Fix incorrect import * Update ServerInfoModal * Further table refactoring * Implement delete part function
This commit is contained in:
@ -189,10 +189,12 @@ export function EditItemAction({
|
||||
// Common action button for deleting an item
|
||||
export function DeleteItemAction({
|
||||
hidden = false,
|
||||
disabled = false,
|
||||
tooltip,
|
||||
onClick
|
||||
}: {
|
||||
hidden?: boolean;
|
||||
disabled?: boolean;
|
||||
tooltip?: string;
|
||||
onClick?: () => void;
|
||||
}): ActionDropdownItem {
|
||||
@ -201,7 +203,8 @@ export function DeleteItemAction({
|
||||
name: t`Delete`,
|
||||
tooltip: tooltip ?? t`Delete item`,
|
||||
onClick: onClick,
|
||||
hidden: hidden
|
||||
hidden: hidden,
|
||||
disabled: disabled
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user