Remove flash message for client error

This commit is contained in:
Claudio Ortolina
2024-12-25 19:08:43 +00:00
parent 2571d1dfd3
commit 2e73e810ea
2 changed files with 3 additions and 25 deletions
@@ -154,18 +154,6 @@ defmodule MusicLibraryWeb.CoreComponents do
<div id={@id}>
<.flash kind={:info} title={gettext("Success!")} flash={@flash} />
<.flash kind={:error} title={gettext("Error!")} flash={@flash} />
<.flash
id="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
>
{gettext("Attempting to reconnect")}
<.icon name="hero-arrow-path" class="ml-1 h-3 w-3 animate-spin" />
</.flash>
<.flash
id="server-error"
kind={:error}