Use Fluxon badges

This commit is contained in:
Claudio Ortolina
2025-05-13 09:48:28 +01:00
parent ec28fcf65e
commit 354c0d8dfb
4 changed files with 26 additions and 89 deletions
@@ -286,12 +286,18 @@ defmodule MusicLibraryWeb.BarcodeScannerComponent do
)}
</p>
</div>
<.badge :if={@status == :new} color={:gray} text={gettext("New")} />
<.badge :if={@status == :new}>
{gettext("New")}
</.badge>
<.link :if={@status == :wishlisted} navigate={~p"/wishlist/#{@record_id}"}>
<.badge color={:yellow} text={gettext("Wishlisted")} />
<.badge color="yellow">
{gettext("Wishlisted")}
</.badge>
</.link>
<.link :if={@status == :collected} navigate={~p"/collection/#{@record_id}"}>
<.badge color={:green} text={gettext("Collected")} />
<.badge color="green">
{gettext("Collected")}
</.badge>
</.link>
</div>
"""