mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
Add notes to mp and sp (#7667)
* add notes to mp and sp * bump api version
This commit is contained in:
@ -5,6 +5,7 @@ import {
|
||||
IconDots,
|
||||
IconInfoCircle,
|
||||
IconList,
|
||||
IconNotes,
|
||||
IconPaperclip
|
||||
} from '@tabler/icons-react';
|
||||
import { useMemo } from 'react';
|
||||
@ -14,6 +15,7 @@ import AdminButton from '../../components/buttons/AdminButton';
|
||||
import { DetailsField, DetailsTable } from '../../components/details/Details';
|
||||
import { DetailsImage } from '../../components/details/DetailsImage';
|
||||
import { ItemDetailsGrid } from '../../components/details/ItemDetails';
|
||||
import NotesEditor from '../../components/editors/NotesEditor';
|
||||
import {
|
||||
ActionDropdown,
|
||||
DeleteItemAction,
|
||||
@ -179,6 +181,18 @@ export default function ManufacturerPartDetail() {
|
||||
model_id={manufacturerPart?.pk}
|
||||
/>
|
||||
)
|
||||
},
|
||||
{
|
||||
name: 'notes',
|
||||
label: t`Notes`,
|
||||
icon: <IconNotes />,
|
||||
content: (
|
||||
<NotesEditor
|
||||
modelType={ModelType.manufacturerpart}
|
||||
modelId={manufacturerPart.pk}
|
||||
editable={user.hasChangeRole(UserRoles.purchase_order)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
];
|
||||
}, [manufacturerPart]);
|
||||
|
@ -4,6 +4,7 @@ import {
|
||||
IconCurrencyDollar,
|
||||
IconDots,
|
||||
IconInfoCircle,
|
||||
IconNotes,
|
||||
IconPackages,
|
||||
IconShoppingCart
|
||||
} from '@tabler/icons-react';
|
||||
@ -15,6 +16,7 @@ import { DetailsField, DetailsTable } from '../../components/details/Details';
|
||||
import DetailsBadge from '../../components/details/DetailsBadge';
|
||||
import { DetailsImage } from '../../components/details/DetailsImage';
|
||||
import { ItemDetailsGrid } from '../../components/details/ItemDetails';
|
||||
import NotesEditor from '../../components/editors/NotesEditor';
|
||||
import {
|
||||
ActionDropdown,
|
||||
DeleteItemAction,
|
||||
@ -240,6 +242,18 @@ export default function SupplierPartDetail() {
|
||||
) : (
|
||||
<Skeleton />
|
||||
)
|
||||
},
|
||||
{
|
||||
name: 'notes',
|
||||
label: t`Notes`,
|
||||
icon: <IconNotes />,
|
||||
content: (
|
||||
<NotesEditor
|
||||
modelType={ModelType.supplierpart}
|
||||
modelId={supplierPart.pk}
|
||||
editable={user.hasChangeRole(UserRoles.purchase_order)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
];
|
||||
}, [supplierPart]);
|
||||
|
Reference in New Issue
Block a user