feat(turbo): add turbo event helpers
This commit is contained in:
parent
69d5713c19
commit
0bd71ad51a
9 changed files with 152 additions and 1 deletions
6
app/views/layouts/application.turbo_stream.haml
Normal file
6
app/views/layouts/application.turbo_stream.haml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- if flash.any?
|
||||
= turbo_stream.replace 'flash_messages', partial: 'layouts/flash_messages'
|
||||
= turbo_stream.hide 'flash_messages', delay: 10000
|
||||
- flash.clear
|
||||
|
||||
= yield
|
Loading…
Add table
Add a link
Reference in a new issue