1
0
Fork 0
mirror of https://github.com/etkecc/synapse-admin.git synced 2025-05-03 01:22:56 +03:00

Add ServerNoticeButton to UserBulkActionButtons ()

This adds the button to send "Server Notices" to many users at once.
This commit is contained in:
Dirk Klimpel 2020-05-06 09:03:33 +02:00 committed by GitHub
parent c41b8ab846
commit 009ce803e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 1 deletions
src/components

View file

@ -30,7 +30,7 @@ import {
useTranslate,
Pagination,
} from "react-admin";
import { ServerNoticeButton } from "./ServerNotices";
import { ServerNoticeButton, ServerNoticeBulkButton } from "./ServerNotices";
const UserPagination = props => (
<Pagination {...props} rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />
@ -51,6 +51,7 @@ const UserBulkActionButtons = props => {
const translate = useTranslate();
return (
<Fragment>
<ServerNoticeBulkButton {...props} />
<BulkDeleteButton
{...props}
label="resources.users.action.erase"