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

Allow Dash Operation Naming Strategy #113

Open
ragboyjr opened this issue Aug 15, 2018 · 0 comments · May be fixed by #374
Open

Allow Dash Operation Naming Strategy #113

ragboyjr opened this issue Aug 15, 2018 · 0 comments · May be fixed by #374

Comments

@ragboyjr
Copy link

When you use the dash operation naming strategy, react-admin fails to properly inflect the resource name into a nicely formatted name.

if the resource name is air-door-event, react admin will format it as Air-door-event.

I've been able to customize the menu links using this following snippet when formatting the name:

inflection.titleize(inflection.humanize(inflection.pluralize(name).replace(/-/g, "_")));

Curious if this is something we should add as a cookbook doc so that people can optionally customize, or if api-platform/admin should just override the layout/menu to use the above instead of their default inflection.

@optior optior linked a pull request Apr 11, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants