From 12447b77089608b0a41dec2eb678379cd9c84b7a Mon Sep 17 00:00:00 2001 From: Manuel Stahl Date: Mon, 13 Jul 2020 10:14:49 +0200 Subject: [PATCH] Increase export of users up to 10000 Change-Id: I54c7a52ae35aeb311074f0f3b103a2fdb92aaedd --- src/components/users.js | 46 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/src/components/users.js b/src/components/users.js index d92041c..c65cd12 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -1,4 +1,4 @@ -import React, { Fragment } from "react"; +import React, { cloneElement, Fragment } from "react"; import Avatar from "@material-ui/core/Avatar"; import PersonPinIcon from "@material-ui/icons/PersonPin"; import ContactMailIcon from "@material-ui/icons/ContactMail"; @@ -30,6 +30,10 @@ import { regex, useTranslate, Pagination, + CreateButton, + ExportButton, + TopToolbar, + sanitizeListRestProps, } from "react-admin"; import { ServerNoticeButton, ServerNoticeBulkButton } from "./ServerNotices"; import { makeStyles } from "@material-ui/core/styles"; @@ -46,6 +50,45 @@ const useStyles = makeStyles({ }, }); +const UserListActions = ({ + currentSort, + className, + resource, + filters, + displayedFilters, + exporter, // you can hide ExportButton if exporter = (null || false) + filterValues, + permanentFilter, + hasCreate, // you can hide CreateButton if hasCreate = false + basePath, + selectedIds, + onUnselectItems, + showFilter, + maxResults, + total, + ...rest +}) => ( + + {filters && + cloneElement(filters, { + resource, + showFilter, + displayedFilters, + filterValues, + context: "button", + })} + + + +); + const UserPagination = props => ( ); @@ -86,6 +129,7 @@ export const UserList = props => { {...props} filters={} filterDefaultValues={{ guests: true, deactivated: false }} + actions={} bulkActionButtons={} pagination={} >