mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-08 03:08:50 +01:00
feat: refresh LibraryList on scan end
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
1aa48de4eb
commit
493e7ff534
1 changed files with 2 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
NumberField,
|
||||
} from 'react-admin'
|
||||
import { useMediaQuery } from '@material-ui/core'
|
||||
import { List, DateField } from '../common'
|
||||
import { List, DateField, useResourceRefresh } from '../common'
|
||||
|
||||
const LibraryFilter = (props) => (
|
||||
<Filter {...props} variant={'outlined'}>
|
||||
|
|
@ -18,6 +18,7 @@ const LibraryFilter = (props) => (
|
|||
|
||||
const LibraryList = (props) => {
|
||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||
useResourceRefresh()
|
||||
|
||||
return (
|
||||
<List
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue