2
0
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:
Oliver
2024-05-13 11:04:19 +10:00
committed by GitHub
parent 700a3612b7
commit b5a3e4aac4
12 changed files with 399 additions and 252 deletions

View File

@ -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
};
}