fix(fork): update autosave UI with button after piece justificative manipulation

This commit is contained in:
Colin Darie 2023-05-11 16:59:38 +02:00
parent 059dabb5ac
commit 81cd6c86ad

View file

@ -5,3 +5,7 @@
- last_attached_file = @champ.piece_justificative_file.attachments.last
- if last_attached_file
= turbo_stream.focus_all "#persisted_row_attachment_#{last_attached_file.id} .attachment-filename a"
- if @champ.dossier.editing_fork?
= turbo_stream.replace_all '.dossier-edit-sticky-footer' do
= render Dossiers::EditFooterComponent.new(dossier: @champ.dossier, annotation: @champ.private?)