mirror of
https://github.com/navidrome/navidrome.git
synced 2025-12-23 23:18:05 -05:00
@@ -1,12 +1,15 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { TopToolbar, ExportButton } from 'react-admin'
|
import { TopToolbar, ExportButton, useListContext } from 'react-admin'
|
||||||
import DeleteMissingFilesButton from './DeleteMissingFilesButton.jsx'
|
import DeleteMissingFilesButton from './DeleteMissingFilesButton.jsx'
|
||||||
|
|
||||||
const MissingListActions = (props) => (
|
const MissingListActions = (props) => {
|
||||||
<TopToolbar {...props}>
|
const { total } = useListContext()
|
||||||
<ExportButton />
|
return (
|
||||||
<DeleteMissingFilesButton deleteAll />
|
<TopToolbar {...props}>
|
||||||
</TopToolbar>
|
<ExportButton maxResults={total} />
|
||||||
)
|
<DeleteMissingFilesButton deleteAll />
|
||||||
|
</TopToolbar>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
export default MissingListActions
|
export default MissingListActions
|
||||||
|
|||||||
Reference in New Issue
Block a user