Skip to content

Allow Dash Operation Naming Strategy #113

Open
@ragboyjr

Description

@ragboyjr

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions