mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
feat(ui): add SizeField to display total size in LibraryList
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
7c40c64ee1
commit
6b48ffd5c0
@ -9,7 +9,7 @@ import {
|
|||||||
BooleanField,
|
BooleanField,
|
||||||
} from 'react-admin'
|
} from 'react-admin'
|
||||||
import { useMediaQuery } from '@material-ui/core'
|
import { useMediaQuery } from '@material-ui/core'
|
||||||
import { List, DateField, useResourceRefresh } from '../common'
|
import { List, DateField, useResourceRefresh, SizeField } from '../common'
|
||||||
|
|
||||||
const LibraryFilter = (props) => (
|
const LibraryFilter = (props) => (
|
||||||
<Filter {...props} variant={'outlined'}>
|
<Filter {...props} variant={'outlined'}>
|
||||||
@ -42,6 +42,7 @@ const LibraryList = (props) => {
|
|||||||
<NumberField source="totalSongs" label="Songs" />
|
<NumberField source="totalSongs" label="Songs" />
|
||||||
<NumberField source="totalAlbums" label="Albums" />
|
<NumberField source="totalAlbums" label="Albums" />
|
||||||
<NumberField source="totalMissingFiles" label="Missing Files" />
|
<NumberField source="totalMissingFiles" label="Missing Files" />
|
||||||
|
<SizeField source="totalSize" />
|
||||||
<DateField
|
<DateField
|
||||||
source="lastScanAt"
|
source="lastScanAt"
|
||||||
label="Last Scan"
|
label="Last Scan"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user