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

How can i specify flash message for specific transition? #22

Open
gansky-alexander opened this issue Nov 9, 2020 · 2 comments
Open

Comments

@gansky-alexander
Copy link

No description provided.

@yann-eugone
Copy link
Contributor

Hi @gansky-alexander

Sadly, the current code provide no way to customize flash messages.

We are re-using a generic sonata admin flash : https://github.com/yokai-php/sonata-workflow/blob/0.x/src/Controller/WorkflowControllerTrait.php#L115

Using a dedicated flash message for applying transition can be a thing.
But per transition flash message is something else (harder).

Maybe using sonata label strategies... But this would assume that ALL admins in ALL projects are using the appropriate strategy.

@gansky-alexander
Copy link
Author

Okay, thank you for the response.

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

No branches or pull requests

2 participants