dossiers: refresh the whole header actions bar on status change

This ensure the other state-dependant buttons get updated to–like the
"Follow" or "Archive" button.

Fix #4186
This commit is contained in:
Pierre de La Morinerie 2019-08-12 14:46:38 +00:00 committed by Nicolas Bouilleaud
parent 3a37c1eeae
commit 79784089a4
3 changed files with 11 additions and 10 deletions

View file

@ -1,5 +1,5 @@
<%= render_flash %>
<%= render_to_element('.state-button', partial: "state_button", locals: { dossier: dossier }) %>
<%= render_to_element('.header-actions', partial: 'header_actions', locals: { dossier: dossier }) %>
<% attachment = dossier.justificatif_motivation.attachment %>
<% if attachment && attachment.virus_scanner.pending? %>