You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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