Add "Purge Remote Media" button

This commit is contained in:
Aine
2024-12-16 11:25:49 +02:00
parent fd4bf7ce5c
commit 9f2293f9c4
12 changed files with 211 additions and 2 deletions

View File

@@ -14,13 +14,14 @@ import {
useListContext,
} from "react-admin";
import { DeleteMediaButton } from "../components/media";
import { DeleteMediaButton, PurgeRemoteMediaButton } from "../components/media";
const ListActions = () => {
const { isLoading, total } = useListContext();
return (
<TopToolbar>
<DeleteMediaButton />
<PurgeRemoteMediaButton />
<ExportButton disabled={isLoading || total === 0} />
</TopToolbar>
);