Skip to content

Commit ebe19d6

Browse files
committed
move error title to text
1 parent 99b808b commit ebe19d6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

installer/templates/phx_web/components/core_components.ex

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
8585
phx-connected={hide("#client-error")}
8686
hidden
8787
>
88+
<span class="font-bold"><%= maybe_eex_gettext.("We can't find the internet!", @gettext)%></span>
8889
<%= maybe_eex_gettext.("Attempting to reconnect", @gettext) %>
8990
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
9091
</.flash>
@@ -96,6 +97,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
9697
phx-connected={hide("#server-error")}
9798
hidden
9899
>
100+
<span class="font-bold"><%= maybe_eex_gettext.("Something went wrong!", @gettext)%></span>
99101
<%= maybe_eex_gettext.("Hang in there while we get back on track", @gettext) %>
100102
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
101103
</.flash>

priv/templates/phx.gen.live/core_components.ex

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
8585
phx-connected={hide("#client-error")}
8686
hidden
8787
>
88+
<span class="font-bold"><%= maybe_eex_gettext.("We can't find the internet!", @gettext)%></span>
8889
<%= maybe_eex_gettext.("Attempting to reconnect", @gettext) %>
8990
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
9091
</.flash>
@@ -96,6 +97,7 @@ defmodule <%= @web_namespace %>.CoreComponents do
9697
phx-connected={hide("#server-error")}
9798
hidden
9899
>
100+
<span class="font-bold"><%= maybe_eex_gettext.("Something went wrong!", @gettext)%></span>
99101
<%= maybe_eex_gettext.("Hang in there while we get back on track", @gettext) %>
100102
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 motion-safe:animate-spin" />
101103
</.flash>

0 commit comments

Comments
 (0)