-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XIVY-15134 responsive association components
Update the state of components relevent to configuring the association based on the meta data values. - Hide the association collapsible entirely if no cardinality is applicable. This essentially means that the type of the field is neither an entity nor a list of entities. Therefore, no association needs to be configured. - Always open the association collapsible by default. If it's visible in the first place, it means that the type of the field is an entity or a list of entities. In this case, the association must be configured. - Add the cardinality to the query key of the `mappedByFields` endpoint to refresh the 'Mapped by' options on a cardinality change. - Add tests for the new behaviour and adjust existing tests.
- Loading branch information
Showing
14 changed files
with
264 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/dataclass-editor/src/detail/field/FieldDetailContent.test.ts
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
packages/dataclass-editor/src/detail/field/FieldDetailContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.