Add support to remove user devices (#57)

Change-Id: I19176daa656b9280ccd00f1ca0095e72870ca21e
This commit is contained in:
Manuel Stahl 2020-07-08 11:11:24 +02:00
parent 78e7c5f391
commit 314906657f
5 changed files with 118 additions and 8 deletions

View file

@ -38,6 +38,7 @@ import {
sanitizeListRestProps,
} from "react-admin";
import { ServerNoticeButton, ServerNoticeBulkButton } from "./ServerNotices";
import { DeviceRemoveButton } from "./devices";
import { makeStyles } from "@material-ui/core/styles";
const useStyles = makeStyles({
@ -284,6 +285,7 @@ export const UserEdit = props => {
}}
sortable={false}
/>
<DeviceRemoveButton />
</Datagrid>
</ReferenceManyField>
</FormTab>