diff --git a/lib/music_library_web/live/scrobble_live/index.ex b/lib/music_library_web/live/scrobble_live/index.ex index f25bbdb3..ffabdb9c 100644 --- a/lib/music_library_web/live/scrobble_live/index.ex +++ b/lib/music_library_web/live/scrobble_live/index.ex @@ -1,9 +1,9 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do use MusicLibraryWeb, :live_view - import MusicLibraryWeb.RecordComponents, only: [type_label: 1, country_label: 1] + import MusicLibraryWeb.RecordComponents, only: [type_label: 1] - alias MusicBrainz.{Release, ReleaseGroupSearchResult} + alias MusicBrainz.ReleaseGroupSearchResult alias MusicLibrary.Records alias MusicLibrary.ScrobbleActivity @@ -25,7 +25,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do - <%= if @search_results != [] && @selected_release_group == nil do %> + <%= if @search_results != [] do %>

{gettext("Release Groups")} @@ -34,81 +34,30 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do "mt-5 divide-y divide-zinc-100 dark:divide-slate-300/30", "max-h-125 overflow-y-auto" ]}> -
  • -
    - {release_group.title} ~p"/images/cover-not-found.png" <> "';"} - /> -
    -

    - {release_group.artists} -

    -

    - {release_group.title} -

    -

    - {Records.Record.format_release_date(release_group.release_date)} - · - <.badge variant="soft" size="xs">{type_label(release_group.type)} -

    -
    -
    -
  • - -

    - <% end %> - - <%= if @selected_release_group && @releases != [] do %> -
    -
    - <.button - variant="ghost" - size="sm" - phx-click="clear_selection" - > - <.icon name="hero-arrow-left" class="icon" aria-hidden="true" data-slot="icon" /> - {gettext("Back")} - -

    - {gettext("Releases for \"%{title}\"", title: @selected_release_group.title)} -

    -
    - -