demarches-normaliennes/app/views/layouts/application.turbo_stream.haml

7 lines
171 B
Text
Raw Normal View History

2022-04-14 20:46:28 +02:00
- if flash.any?
= turbo_stream.replace 'flash_messages', partial: 'layouts/flash_messages'
= turbo_stream.hide 'flash_messages', delay: 10000
- flash.clear
= yield