m2m: option to hide relational item in drawer #22419
Dominic-Marcelino
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The m2m drawer always includes the relational field as well as the additional fields from the junction table.
In some use-cases we might want to display the junction fields only (e.g when using the m2m for a translation).
Basic Example
No response
Motivation
Manage junction fields only from the drawer (e.g in translational setups)
Detailed Design
Therefore an additional prop
displayRelatedItem
Would need to be added to
drawer-item
:https://github.com/directus/directus/blob/main/app/src/views/private/components/drawer-item.vue#L406-L432
and than being used in the interface:
directus/app/src/interfaces/list-m2m/list-m2m.vue
Lines 591 to 602 in 1d7e0b7
Requirements List
Must Have:
Drawbacks
The related item might be needed in the editing context, but don’t think so. If so, it could simply be hidden based on the prop.
Alternatives
N/a
Adoption Strategy
N/a
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions