feat(ui): add SizeField to display total size in LibraryList
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user