mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-15 03:23:07 +00:00
PUI: Improve table rendering of link columns (#8072)
- Some columns were missing correct rendering function
This commit is contained in:
parent
fe36e641c1
commit
af5a0f64b0
src/frontend/src/tables
@ -15,6 +15,7 @@ import { useTable } from '../../hooks/UseTable';
|
||||
import { apiUrl } from '../../states/ApiState';
|
||||
import { useUserState } from '../../states/UserState';
|
||||
import { TableColumn } from '../Column';
|
||||
import { LinkColumn } from '../ColumnRenderers';
|
||||
import { InvenTreeTable } from '../InvenTreeTable';
|
||||
import { RowAction, RowDeleteAction, RowEditAction } from '../RowActions';
|
||||
|
||||
@ -91,11 +92,7 @@ export function AddressTable({
|
||||
sortable: false,
|
||||
switchable: true
|
||||
},
|
||||
{
|
||||
accessor: 'link',
|
||||
sortable: false,
|
||||
switchable: true
|
||||
}
|
||||
LinkColumn({})
|
||||
];
|
||||
}, []);
|
||||
|
||||
|
@ -203,13 +203,11 @@ export function PurchaseOrderLineItemTable({
|
||||
sortable: true,
|
||||
ordering: 'SKU'
|
||||
},
|
||||
{
|
||||
accessor: 'supplier_link',
|
||||
LinkColumn({
|
||||
accessor: 'supplier_part_detail.link',
|
||||
title: t`Supplier Link`,
|
||||
|
||||
sortable: false,
|
||||
render: (record: any) => record?.supplier_part_detail?.link
|
||||
},
|
||||
sortable: false
|
||||
}),
|
||||
{
|
||||
accessor: 'MPN',
|
||||
title: t`Manufacturer Code`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user