mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 15:56:14 +00:00
[UI] Add barcode actions for ManufacturerPart (#13334)
This commit is contained in:
1 parent
c78234218d
commit
9d7aeb4d3c
1 file changed
+8
@@ -15,6 +15,7 @@ import { getDetailUrl } from '@lib/functions/Navigation';
|
||||
import type { PanelType } from '@lib/types/Panel';
|
||||
import AdminButton from '../../components/buttons/AdminButton';
|
||||
import {
|
||||
BarcodeActionDropdown,
|
||||
DeleteItemAction,
|
||||
DuplicateItemAction,
|
||||
EditItemAction,
|
||||
@@ -141,6 +142,13 @@ export default function ManufacturerPartDetail() {
|
||||
model={ModelType.manufacturerpart}
|
||||
id={manufacturerPart.pk}
|
||||
/>,
|
||||
<BarcodeActionDropdown
|
||||
key='barcode'
|
||||
model={ModelType.manufacturerpart}
|
||||
pk={manufacturerPart.pk}
|
||||
hash={manufacturerPart.barcode_hash}
|
||||
perm={user.hasChangeRole(UserRoles.purchase_order)}
|
||||
/>,
|
||||
<OptionsActionDropdown
|
||||
key='options'
|
||||
tooltip={t`Manufacturer Part Actions`}
|
||||
|
||||
Reference in new issue
Block a user