2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-30 18:50:53 +00:00

PUI general improvements (#5947)

* First draft for refactoring the api forms including modals

* Fix merging errors

* Fix deepsource

* Fix jsdoc

* trigger: deepsource

* Try to improve performance by not passing the whole definition down

* First draft for switching to react-hook-form

* Fix warning log in console with i18n when locale is not loaded

* Fix: deepsource

* Fixed RelatedModelField initial value loading and disable submit if form is not 'dirty'

* Make field state hookable to state

* Added nested object field to PUI form framework

* Fix ts errors while integrating the new forms api into a few places

* Fix: deepsource

* Fix some values were not present in the submit data if the field is hidden

* Handle error while loading locales

* Fix: deepsource

* Added few general improvements

* Fix missig key prop

* Fix storage deprecation warnings
This commit is contained in:
Lukas
2023-11-20 22:24:00 +01:00
committed by GitHub
parent 333e2ce993
commit 264dc9d27a
17 changed files with 117 additions and 69 deletions

View File

@ -50,10 +50,9 @@ export function ActionDropdown({
<Menu.Dropdown>
{actions.map((action) =>
action.disabled ? null : (
<Tooltip label={action.tooltip} key={`tooltip-${action.name}`}>
<Tooltip label={action.tooltip} key={action.name}>
<Menu.Item
icon={action.icon}
key={action.name}
onClick={() => {
if (action.onClick != undefined) {
action.onClick();