handle multiple artists properly in UI
This commit is contained in:
@@ -189,7 +189,7 @@ func (a *ArtistPage) showAlbumGrid() {
|
||||
Name: al.Name,
|
||||
ID: al.ID,
|
||||
CoverArtID: al.CoverArtID,
|
||||
Secondary: strconv.Itoa(al.Year),
|
||||
Secondary: []string{strconv.Itoa(al.Year)},
|
||||
}
|
||||
})
|
||||
if g := a.pool.Obtain(util.WidgetTypeGridView); g != nil {
|
||||
|
||||
@@ -158,7 +158,7 @@ func createArtistsGridViewModel(artists []*mediaprovider.Artist) []widgets.GridV
|
||||
Name: ar.Name,
|
||||
ID: ar.ID,
|
||||
CoverArtID: ar.CoverArtID,
|
||||
Secondary: fmt.Sprintf("%d %s", ar.AlbumCount, albums),
|
||||
Secondary: []string{fmt.Sprintf("%d %s", ar.AlbumCount, albums)},
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -333,7 +333,7 @@ func buildArtistGridViewModel(artists []*mediaprovider.Artist) []widgets.GridVie
|
||||
ID: ar.ID,
|
||||
CoverArtID: ar.CoverArtID,
|
||||
Name: ar.Name,
|
||||
Secondary: fmt.Sprintf("%d %s", ar.AlbumCount, albums),
|
||||
Secondary: []string{fmt.Sprintf("%d %s", ar.AlbumCount, albums)},
|
||||
})
|
||||
}
|
||||
return model
|
||||
|
||||
@@ -175,7 +175,7 @@ func createPlaylistGridViewModel(playlists []*mediaprovider.Playlist) []widgets.
|
||||
Name: pl.Name,
|
||||
ID: pl.ID,
|
||||
CoverArtID: pl.CoverArtID,
|
||||
Secondary: fmt.Sprintf("%d %s", pl.TrackCount, tracks),
|
||||
Secondary: []string{fmt.Sprintf("%d %s", pl.TrackCount, tracks)},
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user