Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to override available routes for a <Resource> #8640

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

slax57
Copy link
Contributor

@slax57 slax57 commented Feb 10, 2023

Problem

When using <EditDialog>, <ShowDialog> or <CreateDialog>, these CRUD views are not declared on the <Resource>, and hence the ResourceDefinition will have hasEdit: false, hasCreate: false, hasShow: false.
Thus, any <ReferenceField> targeting that resource will refuse to render a link, because of those booleans.

Solution

Allow to override hasEdit, hasCreate and hasShow at the <Resource> level.

@slax57 slax57 added the RFR Ready For Review label Feb 10, 2023
@fzaninotto fzaninotto merged commit 64a9d6c into next Feb 10, 2023
@fzaninotto fzaninotto deleted the force-resource-routes branch February 10, 2023 16:44
@fzaninotto fzaninotto added this to the 4.8.0 milestone Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants