add album page showing track listing

This commit is contained in:
Drew Weymouth
2023-01-02 18:05:13 -08:00
parent e309a5ad7f
commit 632df5c1b2
10 changed files with 140 additions and 36 deletions
+6
View File
@@ -26,6 +26,7 @@ type AlbumGrid struct {
imageFetcher ImageFetcher
OnPlayAlbum func(string)
OnShowAlbumPage func(string)
OnShowArtistPage func(string)
}
@@ -88,6 +89,11 @@ func (ag *AlbumGrid) createGridWrapList() {
ag.OnShowArtistPage(ac.ArtistID())
}
}
ac.OnShowAlbumPage = func() {
if ag.OnShowAlbumPage != nil {
ag.OnShowAlbumPage(ac.AlbumID())
}
}
return ac
},
// update func