Refactor to hide implementation details

This commit is contained in:
Claudio Ortolina
2025-05-10 23:00:38 +01:00
parent b831a2e1d7
commit e983f20a04
2 changed files with 3 additions and 1 deletions
@@ -9,6 +9,8 @@ defmodule MusicLibraryWeb.ReleaseComponent do
alias MusicLibrary.ScrobbleActivity
def open(id), do: Fluxon.open_dialog(id)
@impl true
def mount(socket) do
{:ok,
@@ -221,7 +221,7 @@
<button
:if={@record.selected_release_id}
phx-click={Fluxon.open_dialog("release-with-tracks-sheet")}
phx-click={MusicLibraryWeb.ReleaseComponent.open("release-with-tracks-sheet")}
>
<span class="sr-only">{gettext("Show Tracks")}</span>
<.icon