TODO: make artist records a stream
This commit is contained in:
@@ -21,6 +21,7 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
|||||||
socket
|
socket
|
||||||
|> assign(:nav_section, :artists)
|
|> assign(:nav_section, :artists)
|
||||||
|> assign(:artist, artist)
|
|> assign(:artist, artist)
|
||||||
|
# TODO: make it a stream
|
||||||
|> assign(:artist_records, grouped_artist_records)
|
|> assign(:artist_records, grouped_artist_records)
|
||||||
|> assign_async(:artist_info, fn ->
|
|> assign_async(:artist_info, fn ->
|
||||||
with {:ok, artist_info} <- Records.get_artist_info(artist) do
|
with {:ok, artist_info} <- Records.get_artist_info(artist) do
|
||||||
|
|||||||
@@ -445,7 +445,7 @@ msgstr ""
|
|||||||
msgid "No MB ID"
|
msgid "No MB ID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/artist_live/show.ex:38
|
#: lib/music_library_web/live/artist_live/show.ex:39
|
||||||
#: lib/music_library_web/live/collection_live/show.ex:120
|
#: lib/music_library_web/live/collection_live/show.ex:120
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
|
|||||||
Reference in New Issue
Block a user