diff --git a/lib/music_library_web/live/stats_live/index.ex b/lib/music_library_web/live/stats_live/index.ex index dc5f3fc8..90a72cb2 100644 --- a/lib/music_library_web/live/stats_live/index.ex +++ b/lib/music_library_web/live/stats_live/index.ex @@ -77,6 +77,11 @@ defmodule MusicLibraryWeb.StatsLive.Index do end end + def handle_event("refresh_lastfm_feed", _, socket) do + LastFm.Refresh.refresh() + {:noreply, socket} + end + def handle_info(%{tracks: recent_tracks}, socket) do release_ids = recent_tracks diff --git a/lib/music_library_web/live/stats_live/index.html.heex b/lib/music_library_web/live/stats_live/index.html.heex index baaa89d1..806f3d36 100644 --- a/lib/music_library_web/live/stats_live/index.html.heex +++ b/lib/music_library_web/live/stats_live/index.html.heex @@ -62,9 +62,28 @@