Use socket assigns instead of threading IDs via JS.push

Extends the same optimization from the previous commit to
all remaining show page handlers across collection, wishlist,
and artist LiveViews. Also simplifies bare JS.push() calls
to plain phx-click strings.
This commit is contained in:
Claudio Ortolina
2026-03-13 16:48:12 +00:00
parent 0b9d008ecb
commit 1dd7974cc7
4 changed files with 46 additions and 50 deletions
@@ -15,7 +15,7 @@ defmodule MusicLibraryWeb.ScrobbleComponents do
<button
type="button"
class="text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-300"
phx-click={JS.push("refresh_lastfm_feed")}
phx-click="refresh_lastfm_feed"
>
<span class="sr-only">{gettext("Refresh LastFm Feed")}</span>
<.icon