diff --git a/frontend/index.html b/frontend/index.html index 7a8820c..3372a7d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -23,6 +23,7 @@

Artists

    +

    Albums

      Tracks

        diff --git a/frontend/js/dashboard.js b/frontend/js/dashboard.js index 22f06d0..9b0555e 100644 --- a/frontend/js/dashboard.js +++ b/frontend/js/dashboard.js @@ -199,11 +199,13 @@ function renderPeriodSelector() { } async function loadTop(period) { - const [artists, tracks] = await Promise.all([ + const [artists, albums, tracks] = await Promise.all([ api(`/me/top/artists?period=${period}&limit=10`), + api(`/me/top/albums?period=${period}&limit=10`), api(`/me/top/tracks?period=${period}&limit=10`), ]); renderRanking(document.getElementById("top-artists"), artists.items, false); + renderRanking(document.getElementById("top-albums"), albums.items, true); renderRanking(document.getElementById("top-tracks"), tracks.items, true); }