Fix issues with failed import from stats
This commit is contained in:
@@ -58,14 +58,12 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
|||||||
|> put_flash(
|
|> put_flash(
|
||||||
:error,
|
:error,
|
||||||
gettext("Error importing record") <> "," <> inspect(changeset.errors)
|
gettext("Error importing record") <> "," <> inspect(changeset.errors)
|
||||||
)
|
)}
|
||||||
|> push_patch(to: ~p"/wishlist")}
|
|
||||||
|
|
||||||
{:error, reason} ->
|
{:error, reason} ->
|
||||||
{:noreply,
|
{:noreply,
|
||||||
socket
|
socket
|
||||||
|> put_flash(:error, gettext("Error importing record") <> "," <> inspect(reason))
|
|> put_flash(:error, gettext("Error importing record") <> "," <> inspect(reason))}
|
||||||
|> push_patch(to: ~p"/wishlist")}
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: lib/music_library_web/live/record_live/index.ex:118
|
#: lib/music_library_web/live/record_live/index.ex:118
|
||||||
#: lib/music_library_web/live/stats_live/index.ex:60
|
#: lib/music_library_web/live/stats_live/index.ex:60
|
||||||
#: lib/music_library_web/live/stats_live/index.ex:67
|
#: lib/music_library_web/live/stats_live/index.ex:66
|
||||||
#: lib/music_library_web/live/wishlist_live/index.ex:117
|
#: lib/music_library_web/live/wishlist_live/index.ex:117
|
||||||
#: lib/music_library_web/live/wishlist_live/index.ex:124
|
#: lib/music_library_web/live/wishlist_live/index.ex:124
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
|||||||
Reference in New Issue
Block a user