mirror of
https://github.com/etkecc/synapse-admin.git
synced 2025-05-02 01:00:30 +03:00
Add button to quarantine media (#180)
Change-Id: I6496826fdf75ab8b7b3ed5a9056abf86a50caea3
This commit is contained in:
parent
aaf782d24f
commit
8536f552d4
5 changed files with 122 additions and 2 deletions
src/components
|
@ -48,7 +48,7 @@ import {
|
|||
import { Link } from "react-router-dom";
|
||||
import { ServerNoticeButton, ServerNoticeBulkButton } from "./ServerNotices";
|
||||
import { DeviceRemoveButton } from "./devices";
|
||||
import { ProtectMediaButton } from "./media";
|
||||
import { ProtectMediaButton, QuarantineMediaButton } from "./media";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
|
||||
const redirect = () => {
|
||||
|
@ -466,6 +466,7 @@ export const UserEdit = props => {
|
|||
<TextField source="media_type" />
|
||||
<TextField source="upload_name" />
|
||||
<TextField source="quarantined_by" />
|
||||
<QuarantineMediaButton label="resources.quarantine_media.action.name" />
|
||||
<ProtectMediaButton label="resources.users_media.fields.safe_from_quarantine" />
|
||||
<DeleteButton mutationMode="pessimistic" redirect={false} />
|
||||
</Datagrid>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue