admin icon indicating copy to clipboard operation
admin copied to clipboard

Allow Dash Operation Naming Strategy

Open ragboyjr opened this issue 7 years ago • 0 comments

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.

ragboyjr avatar Aug 15 '18 22:08 ragboyjr