api-platform / api-platform/admin

Allow Dash Operation Naming Strategy

未關閉
#113 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
hacktoberfest
主要語言
TypeScript
星號
516
分支
134
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。