Upgrading non-track lists

This commit is contained in:
James Barnsley
2018-11-08 17:01:02 +13:00
parent 9226a842fd
commit 5c885f3ccb
13 changed files with 13904 additions and 10623 deletions

View File

@ -174,27 +174,14 @@ class LibraryArtists extends React.Component{
artists = artists.slice(0, this.state.limit);
if (this.props.view == 'list'){
var columns = [
{
label: 'Name',
name: 'name'
},
{
label: 'Followers',
name: 'followers.total'
},
{
label: 'Popularity',
name: 'popularity'
}
]
return (
<section className="content-wrapper">
<List
handleContextMenu={(e,item) => this.handleContextMenu(e,item)}
rows={artists}
columns={columns}
className="artist-list"
details={['followers','popularity']}
extra_detail={['source']}
className="artists"
link_prefix={global.baseURL+"artist/"} />
<LazyLoadListener
loadKey={this.state.limit}