You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guard against the 'connection issue' flash not closing upon reconnection (#2383)
This approach is heavily inspired by Live Beats.
I've removed the `#server-error` flash as it was sometimes caught in a
race condition with the `#client-error` flash, which already covers the
cases we care about.
<.flashid="client-error"kind={:error}title={gettext("We can't find the internet")}phx-disconnected={show(".phx-client-error #client-error")}phx-connected={hide("#client-error")}hidden>
143
-
{gettext("Attempting to reconnect")}
144
-
</.flash>
145
142
146
-
<.flashid="server-error"kind={:error}title={gettext("Something went wrong!")}phx-disconnected={show(".phx-server-error #server-error")}phx-connected={hide("#server-error")}hidden>
147
-
{gettext("Hang in there while we get back on track")}
0 commit comments