fix(messagerie): attachment open in new tab

This commit is contained in:
Colin Darie 2022-12-06 16:44:24 +01:00
parent 8cf8c2c88a
commit f4eb32af29

View file

@ -18,7 +18,7 @@
- if commentaire.piece_jointe.attached? - if commentaire.piece_jointe.attached?
.fr-ml-2w .fr-ml-2w
= render Attachment::ShowComponent.new(attachment: commentaire.piece_jointe.attachment) = render Attachment::ShowComponent.new(attachment: commentaire.piece_jointe.attachment, new_tab: true)
- if show_reply_button? - if show_reply_button?
= button_tag type: 'button', class: 'button small message-answer-button', onclick: 'document.querySelector("#commentaire_body").focus()' do = button_tag type: 'button', class: 'button small message-answer-button', onclick: 'document.querySelector("#commentaire_body").focus()' do