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.
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.