Refactor to hide implementation details
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user