fix: friendlier websocket reconnect message

This commit is contained in:
Graham McIntire 2026-05-05 09:07:33 -05:00
parent 158ee9d323
commit 23be5c2ec2

View file

@ -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>