demarches-normaliennes/app/views/attachments/destroy.turbo_stream.haml
2022-12-05 10:47:10 +01:00

3 lines
197 B
Text

= turbo_stream.remove dom_id(@attachment, :actions)
= turbo_stream.dispatch "attachment:destroyed", { target_id: dom_id(@attachment) }
= turbo_stream.show_all ".attachment-input-#{@attachment.id}"