demarches-normaliennes/app/views/layouts/application.turbo_stream.haml
2022-04-21 19:41:27 +02:00

6 lines
171 B
Text

- if flash.any?
= turbo_stream.replace 'flash_messages', partial: 'layouts/flash_messages'
= turbo_stream.hide 'flash_messages', delay: 10000
- flash.clear
= yield