Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add successMessage to override deleted too #4219

Closed
sfenig opened this issue Dec 26, 2019 · 2 comments
Closed

add successMessage to override deleted too #4219

sfenig opened this issue Dec 26, 2019 · 2 comments

Comments

@sfenig
Copy link

sfenig commented Dec 26, 2019

Is your feature request related to a problem? Please describe.
successMessage is a simple solution to notification overrides for create and edit, but doesn't exist for delete
Describe the solution you'd like
A way to override delete success message. I guess it would have to be in Edit to pass through to delete for the default toolbar case

Describe alternatives you've considered
considered fixing it through translations, but we really don't have a need for translations at this point. This is the only thing driving that, and doesn't seem like the right solution.

Additional context
Add any other context or screenshots about the feature request here.

@ThieryMichel
Copy link
Contributor

Added as a possible enhancement.
For now, you could change the delete notification by adding your own custom DeleteButton. You can then pass the notification you like to the useDelete hook.

@fzaninotto
Copy link
Member

Fixed by #5310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants