enable media bulk delete button, fixes #216

This commit is contained in:
Aine 2024-12-16 11:51:12 +02:00
parent db6594f11f
commit 71e90c12a7
No known key found for this signature in database
GPG Key ID: 34969C908CCA2804

View File

@ -50,6 +50,7 @@ import {
SaveButton,
CreateButton,
ExportButton,
BulkDeleteButton,
TopToolbar,
Toolbar,
NumberField,
@ -496,7 +497,7 @@ export const UserEdit = (props: EditProps) => {
perPage={50}
sort={{ field: "created_ts", order: "DESC" }}
>
<Datagrid sx={{ width: "100%" }}>
<Datagrid sx={{ width: "100%" }} bulkActionButtons={<BulkDeleteButton/>}>
<MediaIDField source="media_id" />
<DateField source="created_ts" showTime options={DATE_FORMAT} />
<DateField source="last_access_ts" showTime options={DATE_FORMAT} />