mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
attach artist page link to ArtistName component
+ separate fetching artist albums with fetching artist info + include limit when fetching artist albums + refactor interfaces
This commit is contained in:
committed by
Mungai Njoroge
parent
e54fea2d4d
commit
580dce1da9
@@ -86,7 +86,7 @@ function getSongItems() {
|
||||
function getArtistAlbumComponents(): ScrollerItem[] {
|
||||
return album.albumArtists.map((artist) => {
|
||||
const artist_name = album.info.albumartists.find(
|
||||
(a) => a.hash === artist.artisthash
|
||||
(a) => a.artisthash === artist.artisthash
|
||||
)?.name;
|
||||
return {
|
||||
id: Math.random().toString(),
|
||||
@@ -121,7 +121,7 @@ function playFromAlbum(index: number) {
|
||||
queue.play(index);
|
||||
}
|
||||
|
||||
onBeforeRouteUpdate(async (to: RouteLocationNormalized) => {
|
||||
onBeforeRouteUpdate(async (to) => {
|
||||
await album.fetchTracksAndArtists(to.params.hash.toString()).then(() => {
|
||||
album.resetQuery();
|
||||
album.resetAlbumArtists();
|
||||
|
||||
Reference in New Issue
Block a user