Refactor to hide implementation details
This commit is contained in:
@@ -9,6 +9,8 @@ defmodule MusicLibraryWeb.ReleaseComponent do
|
|||||||
|
|
||||||
alias MusicLibrary.ScrobbleActivity
|
alias MusicLibrary.ScrobbleActivity
|
||||||
|
|
||||||
|
def open(id), do: Fluxon.open_dialog(id)
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def mount(socket) do
|
def mount(socket) do
|
||||||
{:ok,
|
{:ok,
|
||||||
|
|||||||
@@ -221,7 +221,7 @@
|
|||||||
|
|
||||||
<button
|
<button
|
||||||
:if={@record.selected_release_id}
|
: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>
|
<span class="sr-only">{gettext("Show Tracks")}</span>
|
||||||
<.icon
|
<.icon
|
||||||
|
|||||||
Reference in New Issue
Block a user