mirror of
https://github.com/etkecc/synapse-admin.git
synced 2025-05-03 01:22:56 +03:00
Add ServerNoticeButton to UserBulkActionButtons (#41)
This adds the button to send "Server Notices" to many users at once.
This commit is contained in:
parent
c41b8ab846
commit
009ce803e2
3 changed files with 73 additions and 1 deletions
src/components
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue