mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-13 08:21:26 +00:00
[React] SupplierPart table (#5833)
* Fix TableHoverCard component * Improving handling of very wide table cells * Update panels for PartDetail * Refactor <Thumbnail> component * Add SupplierPart table * Refactor forms - Do not need to specify custom form name any more * More fixes for modal forms * Refactor forms field code * Add generic row action components for edit and delete * Add placeholder comments * Add ability to edit supplier part from table * Create supplier part * Add missing import * Revert scroll behaviour for wide cells - Does not play nice on chrome * Add placeholder panel for part manufacturers * Fix inline renderer for manufacturerpart * Cleanup unused imports * Add icons to supplier part fields * Increase size of form titles * Another fix
This commit is contained in:
@ -23,16 +23,12 @@ function partTableColumns(): TableColumn[] {
|
||||
noWrap: true,
|
||||
title: t`Part`,
|
||||
render: function (record: any) {
|
||||
// TODO - Link to the part detail page
|
||||
return (
|
||||
<Group spacing="xs" align="left" noWrap={true}>
|
||||
<Thumbnail
|
||||
src={record.thumbnail || record.image}
|
||||
alt={record.name}
|
||||
size={24}
|
||||
/>
|
||||
<Text>{record.full_name}</Text>
|
||||
</Group>
|
||||
<Thumbnail
|
||||
src={record.thumbnail || record.image}
|
||||
alt={record.name}
|
||||
text={record.full_name}
|
||||
/>
|
||||
);
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user