12
m2m: option to hide relational item in drawer
Source: directus/directus#22419 · opened by @Dominic-Marcelino
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 todrawer-item :
and than being used in the interface:
Requirements List
Must Have:
• extend drawerItem with a new prop
• update usage
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_
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 todrawer-item :
and than being used in the interface:
Requirements List
Must Have:
• extend drawerItem with a new prop
• update usage
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_
No pledges yet. Be the first to back this.
Comments
Similar requests
Allow disabling editing of a M2M linked item
5 votes · 0 comments
Add a button to switch "select item" drawer to a "create item" drawer for better user friendliness
1 vote · 0 comments
Implement 'Save All' Functionality for Nested Collections in Relation Drawer
3 votes · 0 comments
M2M relationship in both objects
2 votes · 0 comments
Relational field (M2M) as Dropdown in Admin UI Filters.
3 votes · 0 comments
No comments yet.