Update to Phoenix 1.6.6
Update by applying https://gist.github.com/chrismccord/2ab350f154235ad4a4d0f4de6decba7b JS hooks not working yet.
This commit is contained in:
11
lib/clip_web/templates/layout/live.html.heex
Normal file
11
lib/clip_web/templates/layout/live.html.heex
Normal file
@ -0,0 +1,11 @@
|
||||
<main role="main" class="container">
|
||||
<p class="alert alert-info" role="alert"
|
||||
phx-click="lv:clear-flash"
|
||||
phx-value-key="info"><%= live_flash(@flash, :info) %></p>
|
||||
|
||||
<p class="alert alert-danger" role="alert"
|
||||
phx-click="lv:clear-flash"
|
||||
phx-value-key="error"><%= live_flash(@flash, :error) %></p>
|
||||
|
||||
<%= @inner_content %>
|
||||
</main>
|
||||
Reference in New Issue
Block a user