Add playCount to artist list
This commit is contained in:
parent
ca5da5b0ea
commit
49153dc1c1
3 changed files with 6 additions and 2 deletions
|
|
@ -64,7 +64,8 @@
|
||||||
"fields": {
|
"fields": {
|
||||||
"name": "Nome",
|
"name": "Nome",
|
||||||
"albumCount": "Total de Álbuns",
|
"albumCount": "Total de Álbuns",
|
||||||
"songCount": "Total de Músicas"
|
"songCount": "Total de Músicas",
|
||||||
|
"playCount": "Execuções"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"user": {
|
"user": {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import {
|
||||||
Datagrid,
|
Datagrid,
|
||||||
DatagridBody,
|
DatagridBody,
|
||||||
DatagridRow,
|
DatagridRow,
|
||||||
|
DateField,
|
||||||
Filter,
|
Filter,
|
||||||
NumberField,
|
NumberField,
|
||||||
SearchInput,
|
SearchInput,
|
||||||
|
|
@ -85,6 +86,7 @@ const ArtistList = ({ width, ...rest }) => {
|
||||||
<TextField source="name" />
|
<TextField source="name" />
|
||||||
<NumberField source="albumCount" sortByOrder={'DESC'} />
|
<NumberField source="albumCount" sortByOrder={'DESC'} />
|
||||||
<NumberField source="songCount" sortByOrder={'DESC'} />
|
<NumberField source="songCount" sortByOrder={'DESC'} />
|
||||||
|
<NumberField source="playCount" sortByOrder={'DESC'} />
|
||||||
<ArtistContextMenu />
|
<ArtistContextMenu />
|
||||||
</ArtistDatagrid>
|
</ArtistDatagrid>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,8 @@
|
||||||
"fields": {
|
"fields": {
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"albumCount": "Album Count",
|
"albumCount": "Album Count",
|
||||||
"songCount": "Song Count"
|
"songCount": "Song Count",
|
||||||
|
"playCount": "Plays"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue