Skip to content

Commit

Permalink
move error title to text
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Jan 27, 2025
1 parent 99b808b commit ebe19d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions installer/templates/phx_web/components/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
phx-connected={hide("#client-error")}
hidden
>
<span class="font-bold"><%= maybe_eex_gettext.("We can't find the internet!", @gettext)%></span>
<%= maybe_eex_gettext.("Attempting to reconnect", @gettext) %>
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
</.flash>
Expand All @@ -96,6 +97,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
phx-connected={hide("#server-error")}
hidden
>
<span class="font-bold"><%= maybe_eex_gettext.("Something went wrong!", @gettext)%></span>
<%= maybe_eex_gettext.("Hang in there while we get back on track", @gettext) %>
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
</.flash>
Expand Down
2 changes: 2 additions & 0 deletions priv/templates/phx.gen.live/core_components.ex
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
phx-connected={hide("#client-error")}
hidden
>
<span class="font-bold"><%= maybe_eex_gettext.("We can't find the internet!", @gettext)%></span>
<%= maybe_eex_gettext.("Attempting to reconnect", @gettext) %>
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
</.flash>
Expand All @@ -96,6 +97,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
phx-connected={hide("#server-error")}
hidden
>
<span class="font-bold"><%= maybe_eex_gettext.("Something went wrong!", @gettext)%></span>
<%= maybe_eex_gettext.("Hang in there while we get back on track", @gettext) %>
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
</.flash>
Expand Down

0 comments on commit ebe19d6

Please sign in to comment.