From 760e32a9dd41bece514d9099ad90953097684512 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sat, 9 Nov 2024 13:21:58 +0000 Subject: [PATCH] Change import menu icon depending on destination Star = wishlist, plus = collection --- .../live/record_live/import_component.ex | 10 +++++++--- lib/music_library_web/live/record_live/index.html.heex | 1 + lib/music_library_web/live/stats_live/index.html.heex | 2 +- .../live/wishlist_live/index.html.heex | 1 + priv/gettext/default.pot | 8 ++++++-- 5 files changed, 16 insertions(+), 6 deletions(-) diff --git a/lib/music_library_web/live/record_live/import_component.ex b/lib/music_library_web/live/record_live/import_component.ex index 00f2ae56..76ed9f54 100644 --- a/lib/music_library_web/live/record_live/import_component.ex +++ b/lib/music_library_web/live/record_live/import_component.ex @@ -32,7 +32,11 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do role="list" class="divide-y divide-zinc-100 dark:divide-slate-300/30 mt-5" > - <.result :for={release_group <- @release_groups} release_group={release_group} /> + <.result + :for={release_group <- @release_groups} + release_group={release_group} + icon_name={@icon_name} + />
- <%= gettext("Open options") %> - <.icon name="hero-plus" class="-mt-1 h-5 w-5" aria-hidden="true" data-slot="icon" /> + <%= gettext("Choose which format to import") %> + <.icon name={@icon_name} class="-mt-1 h-5 w-5" aria-hidden="true" data-slot="icon" />