Rename refresh_lastfm_feed to refresh_scrobbles

This commit is contained in:
Claudio Ortolina
2026-03-28 08:09:26 +00:00
parent 47f8eddff1
commit d45aff21ec
5 changed files with 17 additions and 17 deletions
@@ -10,14 +10,14 @@ defmodule MusicLibraryWeb.ScrobbleComponents do
import MusicLibraryWeb.RecordComponents, only: [format_label: 1] import MusicLibraryWeb.RecordComponents, only: [format_label: 1]
def refresh_lastfm_feed_button(assigns) do def refresh_scrobbles_button(assigns) do
~H""" ~H"""
<button <button
type="button" type="button"
class="text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-300" class="text-zinc-500 hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-300"
phx-click="refresh_lastfm_feed" phx-click="refresh_scrobbles"
> >
<span class="sr-only">{gettext("Refresh LastFm Feed")}</span> <span class="sr-only">{gettext("Refresh scrobbles")}</span>
<.icon <.icon
name="hero-arrow-path" name="hero-arrow-path"
class="phx-click-loading:animate-spin size-5" class="phx-click-loading:animate-spin size-5"
@@ -80,7 +80,7 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.Index do
<span class="sr-only sm:not-sr-only">{gettext("Album")}</span> <span class="sr-only sm:not-sr-only">{gettext("Album")}</span>
</.button> </.button>
</.button_group> </.button_group>
<.refresh_lastfm_feed_button /> <.refresh_scrobbles_button />
</div> </div>
</div> </div>
@@ -287,7 +287,7 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.Index do
{:noreply, push_patch(socket, to: ~p"/scrobbled-tracks?#{qs}")} {:noreply, push_patch(socket, to: ~p"/scrobbled-tracks?#{qs}")}
end end
def handle_event("refresh_lastfm_feed", _, socket) do def handle_event("refresh_scrobbles", _, socket) do
ListeningStats.refresh() ListeningStats.refresh()
{:noreply, socket} {:noreply, socket}
end end
@@ -92,7 +92,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
end end
@impl true @impl true
def handle_event("refresh_lastfm_feed", _, socket) do def handle_event("refresh_scrobbles", _, socket) do
ListeningStats.refresh() ListeningStats.refresh()
{:noreply, socket} {:noreply, socket}
end end
@@ -235,7 +235,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
<.section> <.section>
<:title> <:title>
{gettext("Scrobble activity")} {gettext("Scrobble activity")}
<.refresh_lastfm_feed_button /> <.refresh_scrobbles_button />
</:title> </:title>
<:side_actions> <:side_actions>
<.tabs_list active_tab={@scrobble_activity_mode} variant="segmented" size="xs"> <.tabs_list active_tab={@scrobble_activity_mode} variant="segmented" size="xs">
+5 -5
View File
@@ -262,11 +262,6 @@ msgstr ""
msgid "MusicBrainz data refreshed successfully" msgid "MusicBrainz data refreshed successfully"
msgstr "" msgstr ""
#: lib/music_library_web/components/scrobble_components.ex
#, elixir-autogen, elixir-format
msgid "Refresh LastFm Feed"
msgstr ""
#: lib/music_library_web/live_helpers/record_actions.ex #: lib/music_library_web/live_helpers/record_actions.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Cover refreshed successfully" msgid "Cover refreshed successfully"
@@ -2314,3 +2309,8 @@ msgstr ""
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "∞" msgid "∞"
msgstr "" msgstr ""
#: lib/music_library_web/components/scrobble_components.ex
#, elixir-autogen, elixir-format
msgid "Refresh scrobbles"
msgstr ""
+5 -5
View File
@@ -262,11 +262,6 @@ msgstr ""
msgid "MusicBrainz data refreshed successfully" msgid "MusicBrainz data refreshed successfully"
msgstr "" msgstr ""
#: lib/music_library_web/components/scrobble_components.ex
#, elixir-autogen, elixir-format
msgid "Refresh LastFm Feed"
msgstr ""
#: lib/music_library_web/live_helpers/record_actions.ex #: lib/music_library_web/live_helpers/record_actions.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Cover refreshed successfully" msgid "Cover refreshed successfully"
@@ -2314,3 +2309,8 @@ msgstr ""
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "∞" msgid "∞"
msgstr "" msgstr ""
#: lib/music_library_web/components/scrobble_components.ex
#, elixir-autogen, elixir-format, fuzzy
msgid "Refresh scrobbles"
msgstr ""