Show compact scrobble count

This commit is contained in:
Claudio Ortolina
2025-09-02 08:28:29 +03:00
parent 408899747e
commit 7532431ae0
2 changed files with 2 additions and 1 deletions
@@ -1,6 +1,7 @@
defmodule MusicLibraryWeb.StatsLive.Index do
use MusicLibraryWeb, :live_view
import MusicLibrary.FormatNumber, only: [to_compact: 1]
import MusicLibraryWeb.ChartComponents
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
import MusicLibraryWeb.StatsComponents
@@ -15,7 +15,7 @@
path={~p"/collection"}
/>
<.counter title={gettext("Total wishlist")} count={@wishlist_count} path={~p"/wishlist"} />
<.counter title={gettext("Total scrobbles")} count={@scrobble_count} />
<.counter title={gettext("Total scrobbles")} count={to_compact(@scrobble_count)} />
</dl>
</div>