api-platform / api-platform/admin
Allow Dash Operation Naming Strategy
- Vorherrschende Sprache
- TypeScript
- Sterne
- 516
- Forks
- 134
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.