Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flash for turbo-stream rendered pages #1

Open
swobspace opened this issue Jan 18, 2022 · 0 comments
Open

Flash for turbo-stream rendered pages #1

swobspace opened this issue Jan 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@swobspace
Copy link
Owner

Show flash messages if something can't rendered via turbo-stream (i.e. missing alternative from create/update/destroy.turbo_stream.erb)

  • Create a flash component
  • add a target in layout.html.erb

i.e.

<div id="ts_flash">
  <%= show_flash %>
</div>
@swobspace swobspace added the enhancement New feature or request label Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant