Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow customization of "Element deleted" notification when using <DeleteButton> #5309
Comments
|
Nice idea. We could also pass the |
We discussed this but someone mentioned passing the resource might not always make grammatical sense. We tried the translation but realized that we could not pass the messageArgs through. |
Is your feature request related to a problem? Please describe.
When the user clicks a
<DeleteButton>in an Edit toolbar, react-admin displays "Element deleted". I would like to customize that message for different resources (e.g. "Post deleted" and "Comment deleted").Describe the solution you'd like
I would like
DeleteButtonto behave likeSaveButtonand acceptonSuccessandonFailureproperties.Describe alternatives you've considered
The "Element deleted" message can be customized using internationalization but I think that's a global change and wouldn't let me customize the message by resource.