yokai-php / sonata-workflow

Integrate Symfony workflow component in Sonata Admin
MIT License
22 stars 11 forks source link

Dropdown appears on "show" screen toolbar #4

Closed danaki closed 5 years ago

danaki commented 6 years ago

Even if "show" screen is not configured, transition dropdown is there, just replace "edit" with "show" in the URL to see. Not sure if that a major bug, but "show" screens are usually do not offer to change entity, anyway a configuration option to disable this behavior would be nice to see. Thanks.

yann-eugone commented 6 years ago

This is because side menu is generated for both "show" and "edit" actions.

Maybe we can introduce an option for the WorkflowExtension, that tell for which action the menu should be added (default to "edit" only).

yann-eugone commented 5 years ago

I changed my mind, default value is ["show", "edit"] but you can change it anyway.

yann-eugone commented 5 years ago

Released in https://github.com/yokai-php/sonata-workflow/releases/tag/v0.1.2