mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 19:20:37 +03:00
Add playCount and playDate columns to album songs list
This commit is contained in:
parent
c73f64ee3a
commit
1494be9aaa
@ -25,6 +25,7 @@ import {
|
||||
QualityInfo,
|
||||
useSelectedFields,
|
||||
useResourceRefresh,
|
||||
DateField,
|
||||
} from '../common'
|
||||
import { AddToPlaylistDialog } from '../dialogs'
|
||||
import config from '../config'
|
||||
@ -118,6 +119,10 @@ const AlbumSongs = (props) => {
|
||||
sortByOrder={'DESC'}
|
||||
/>
|
||||
),
|
||||
playCount: isDesktop && (
|
||||
<NumberField source="playCount" sortByOrder={'DESC'} />
|
||||
),
|
||||
playDate: <DateField source="playDate" sortByOrder={'DESC'} showTime />,
|
||||
quality: isDesktop && <QualityInfo source="quality" sortable={false} />,
|
||||
channels: isDesktop && <NumberField source="channels" sortable={true} />,
|
||||
bpm: isDesktop && <NumberField source="bpm" sortable={false} />,
|
||||
@ -136,7 +141,7 @@ const AlbumSongs = (props) => {
|
||||
resource: 'albumSong',
|
||||
columns: toggleableFields,
|
||||
omittedColumns: ['title'],
|
||||
defaultOff: ['channels', 'bpm', 'year'],
|
||||
defaultOff: ['channels', 'bpm', 'year', 'playCount', 'playDate'],
|
||||
})
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user