From 78f2464af3ff333593fdc094bab69dc11b912d11 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 7 Feb 2022 17:36:44 -0500 Subject: [PATCH] fix flashes --- lib/cannery_web/templates/layout/live.html.heex | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/cannery_web/templates/layout/live.html.heex b/lib/cannery_web/templates/layout/live.html.heex index a88bba8..93c044f 100644 --- a/lib/cannery_web/templates/layout/live.html.heex +++ b/lib/cannery_web/templates/layout/live.html.heex @@ -1,18 +1,21 @@
+
- <%= if @flash && @flash |> Map.has_key?(:info) do %> + <%= if @flash && @flash |> Map.has_key?("info") do %> <% end %> - <%= if @flash && @flash |> Map.has_key?(:error) do %> + + <%= if @flash && @flash |> Map.has_key?("error") do %> <% end %>
+ <%= @inner_content %>