fix: friendlier websocket reconnect message
This commit is contained in:
parent
158ee9d323
commit
23be5c2ec2
1 changed files with 2 additions and 2 deletions
|
|
@ -840,12 +840,12 @@ defmodule ToweropsWeb.Layouts do
|
|||
<.flash
|
||||
id="server-error"
|
||||
kind={:error}
|
||||
title={gettext("Something went wrong!")}
|
||||
title={gettext("Reconnecting to server")}
|
||||
phx-disconnected={show(".phx-server-error #server-error") |> JS.remove_attribute("hidden")}
|
||||
phx-connected={hide("#server-error") |> JS.set_attribute({"hidden", ""})}
|
||||
hidden
|
||||
>
|
||||
{gettext("Attempting to reconnect")}
|
||||
{gettext("Hang tight — we'll be back in a moment")}
|
||||
<.icon name="hero-arrow-path" class="ml-1 size-3 motion-safe:animate-spin" />
|
||||
</.flash>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue