Add playCount to artist list

This commit is contained in:
Deluan 2020-08-14 14:35:00 -04:00
parent ca5da5b0ea
commit 49153dc1c1
3 changed files with 6 additions and 2 deletions

View File

@ -64,7 +64,8 @@
"fields": {
"name": "Nome",
"albumCount": "Total de Álbuns",
"songCount": "Total de Músicas"
"songCount": "Total de Músicas",
"playCount": "Execuções"
}
},
"user": {

View File

@ -3,6 +3,7 @@ import {
Datagrid,
DatagridBody,
DatagridRow,
DateField,
Filter,
NumberField,
SearchInput,
@ -85,6 +86,7 @@ const ArtistList = ({ width, ...rest }) => {
<TextField source="name" />
<NumberField source="albumCount" sortByOrder={'DESC'} />
<NumberField source="songCount" sortByOrder={'DESC'} />
<NumberField source="playCount" sortByOrder={'DESC'} />
<ArtistContextMenu />
</ArtistDatagrid>
)}

View File

@ -65,7 +65,8 @@
"fields": {
"name": "Name",
"albumCount": "Album Count",
"songCount": "Song Count"
"songCount": "Song Count",
"playCount": "Plays"
}
},
"playlist": {