mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-28 10:34:34 +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 type { PanelType } from '@lib/types/Panel';
|
||||||
import AdminButton from '../../components/buttons/AdminButton';
|
import AdminButton from '../../components/buttons/AdminButton';
|
||||||
import {
|
import {
|
||||||
|
BarcodeActionDropdown,
|
||||||
DeleteItemAction,
|
DeleteItemAction,
|
||||||
DuplicateItemAction,
|
DuplicateItemAction,
|
||||||
EditItemAction,
|
EditItemAction,
|
||||||
@@ -141,6 +142,13 @@ export default function ManufacturerPartDetail() {
|
|||||||
model={ModelType.manufacturerpart}
|
model={ModelType.manufacturerpart}
|
||||||
id={manufacturerPart.pk}
|
id={manufacturerPart.pk}
|
||||||
/>,
|
/>,
|
||||||
|
<BarcodeActionDropdown
|
||||||
|
key='barcode'
|
||||||
|
model={ModelType.manufacturerpart}
|
||||||
|
pk={manufacturerPart.pk}
|
||||||
|
hash={manufacturerPart.barcode_hash}
|
||||||
|
perm={user.hasChangeRole(UserRoles.purchase_order)}
|
||||||
|
/>,
|
||||||
<OptionsActionDropdown
|
<OptionsActionDropdown
|
||||||
key='options'
|
key='options'
|
||||||
tooltip={t`Manufacturer Part Actions`}
|
tooltip={t`Manufacturer Part Actions`}
|
||||||
|
|||||||
Reference in new issue
Block a user