2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-13 08:21:26 +00:00

[React] Part parameters table (#5709)

* Track current panel selection in local storage

* Simplify part detail tabs

* Fix <PanelGroup> instances

* Handle missing model type for rendering

* Add some more API endpoints

* Add PartParameter table

* Add callback to create new part parameter

* Allow PartParameter list API endpoint to be searched

* More PanelGroup collapse tweaks

- Still requires more attention

* Fix logic for related part table

- Need to rebuild columns when part id changes

* Further fixes for related part table

* Re-implement change to PanelGroup

- useLocalStorage
- Change got clobbered in recent merge conflict

* Add part thumbnail to StockItemTable

* Add simple <YesNo> button

- Can be improved later

* Fix for PartTable

* Allow CORS requests to /static/ endpoint

* Updates to other existing tables

* Update URLs for dashboard items
This commit is contained in:
Oliver
2023-10-16 23:34:16 +11:00
committed by GitHub
parent a9d18ba28f
commit 9705521cd2
22 changed files with 383 additions and 125 deletions

View File

@ -35,11 +35,6 @@ function partTableColumns(): TableColumn[] {
/>
<Text>{record.full_name}</Text>
</Group>
// <ThumbnailHoverCard
// src={record.thumbnail || record.image}
// text={record.name}
// link=""
// />
);
}
},
@ -68,7 +63,7 @@ function partTableColumns(): TableColumn[] {
render: function (record: any) {
// TODO: Link to the category detail page
return shortenString({
str: record.category_detail.pathstring
str: record.category_detail?.pathstring
});
}
},