nathanwoulfe / Plumber

The workflow solution for Umbraco 7
39 stars 20 forks source link

Additional fix to reset button states when approval throws error #96

Closed tomfulton closed 5 years ago

tomfulton commented 5 years ago

This is an additional fix for #92

During a failed Publish, in Explicit mode, the state of the drawer buttons were not being reset - they still said "Document is currently in a workflow" and "Approve changes", but if you refresh the page, it's at the default "Request publish" state.

This update ensures the workflowActioned event is emitted during either a success or failure, so the drawer buttons can update.