Everyone may want to check this file:
There are two client-side events for this situation:
before_workflow_action: () => {} after_workflow_action: () => {}
Regards,
Alirio.