feat: add playcounts to album and songs

(fix year in song list)
This commit is contained in:
Deluan
2020-03-28 20:38:41 -04:00
parent 777231ea79
commit fec8b5f731
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ const useStyles = makeStyles((theme) => ({
const getColsForWidth = (width) => {
if (width === 'xs') return 2
if (width === 'sm') return 4
if (width === 'sm') return 3
if (width === 'md') return 5
if (width === 'lg') return 6
return 7
+1
View File
@@ -35,6 +35,7 @@ const AlbumListView = (props) => {
render={(r) => (r.albumArtist ? r.albumArtist : r.artist)}
/>
{isDesktop && <NumberField source="songCount" />}
{isDesktop && <NumberField source="playCount" />}
<RangeField source={'year'} sortBy={'maxYear'} />
{isDesktop && <DurationField source="duration" />}
</Datagrid>