sonata-workflow icon indicating copy to clipboard operation
sonata-workflow copied to clipboard

How can i specify flash message for specific transition?

Open gansky-alexander opened this issue 5 years ago • 3 comments

gansky-alexander avatar Nov 09 '20 11:11 gansky-alexander

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.

yann-eugone avatar Nov 09 '20 13:11 yann-eugone

Okay, thank you for the response.

gansky-alexander avatar Nov 09 '20 13:11 gansky-alexander