From 2e73e810ea777ab820d6fcc8c5859f20ca291f84 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 25 Dec 2024 19:08:43 +0000 Subject: [PATCH] Remove flash message for client error --- .../components/core_components.ex | 12 ------------ priv/gettext/default.pot | 16 +++------------- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index f204358c..60145ce2 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -154,18 +154,6 @@ defmodule MusicLibraryWeb.CoreComponents do
<.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 id="server-error" kind={:error} diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 0a17559f..42a7e75b 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -11,7 +11,7 @@ msgid "" msgstr "" -#: lib/music_library_web/components/core_components.ex:512 +#: lib/music_library_web/components/core_components.ex:500 #, elixir-autogen, elixir-format msgid "Actions" msgstr "" @@ -23,11 +23,6 @@ msgstr "" msgid "Are you sure?" msgstr "" -#: lib/music_library_web/components/core_components.ex:165 -#, elixir-autogen, elixir-format -msgid "Attempting to reconnect" -msgstr "" - #: lib/music_library_web/live/stats_live/index.html.heex:3 #, elixir-autogen, elixir-format msgid "Basics" @@ -100,7 +95,7 @@ msgstr "" msgid "Genres" msgstr "" -#: lib/music_library_web/components/core_components.ex:177 +#: lib/music_library_web/components/core_components.ex:165 #, elixir-autogen, elixir-format msgid "Hang in there while we get back on track" msgstr "" @@ -252,7 +247,7 @@ msgstr "" msgid "Showing %{visible} of %{total} records" msgstr "" -#: lib/music_library_web/components/core_components.ex:172 +#: lib/music_library_web/components/core_components.ex:160 #, elixir-autogen, elixir-format msgid "Something went wrong!" msgstr "" @@ -307,11 +302,6 @@ msgstr "" msgid "View on MusicBrainz" msgstr "" -#: lib/music_library_web/components/core_components.ex:160 -#, elixir-autogen, elixir-format -msgid "We can't find the internet" -msgstr "" - #: lib/music_library_web/controllers/session_html/new.html.heex:5 #, elixir-autogen, elixir-format msgid "Welcome to your Music Library"