Show 50 elements by default in the list of each resource
This commit is contained in:
parent
9735ffbc19
commit
28b80d7fa2
@ -123,6 +123,7 @@ export const DestinationList = (props: ListProps) => {
|
|||||||
filters={destinationFilters}
|
filters={destinationFilters}
|
||||||
pagination={<DestinationPagination />}
|
pagination={<DestinationPagination />}
|
||||||
sort={{ field: "destination", order: "ASC" }}
|
sort={{ field: "destination", order: "ASC" }}
|
||||||
|
perPage={50}
|
||||||
>
|
>
|
||||||
<DatagridConfigurable rowClick={id => `${id}/show/rooms`} bulkActionButtons={false}>
|
<DatagridConfigurable rowClick={id => `${id}/show/rooms`} bulkActionButtons={false}>
|
||||||
<FunctionField source="destination" render={destinationFieldRender} label="resources.destinations.fields.destination" />
|
<FunctionField source="destination" render={destinationFieldRender} label="resources.destinations.fields.destination" />
|
||||||
|
@ -38,7 +38,7 @@ export const RegistrationTokenList = (props: ListProps) => (
|
|||||||
filters={registrationTokenFilters}
|
filters={registrationTokenFilters}
|
||||||
filterDefaultValues={{ valid: true }}
|
filterDefaultValues={{ valid: true }}
|
||||||
pagination={false}
|
pagination={false}
|
||||||
perPage={500}
|
perPage={50}
|
||||||
>
|
>
|
||||||
<DatagridConfigurable rowClick="edit">
|
<DatagridConfigurable rowClick="edit">
|
||||||
<TextField source="token" sortable={false} label="resources.registration_tokens.fields.token"/>
|
<TextField source="token" sortable={false} label="resources.registration_tokens.fields.token"/>
|
||||||
|
@ -90,7 +90,7 @@ const ReportShowActions = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const ReportList = (props: ListProps) => (
|
export const ReportList = (props: ListProps) => (
|
||||||
<List {...props} pagination={<ReportPagination />} sort={{ field: "received_ts", order: "DESC" }}>
|
<List {...props} pagination={<ReportPagination />} perPage={50} sort={{ field: "received_ts", order: "DESC" }}>
|
||||||
<DatagridConfigurable rowClick="show" bulkActionButtons={false}>
|
<DatagridConfigurable rowClick="show" bulkActionButtons={false}>
|
||||||
<TextField source="id" sortable={false} label="resources.reports.fields.id" />
|
<TextField source="id" sortable={false} label="resources.reports.fields.id" />
|
||||||
<DateField source="received_ts" showTime options={DATE_FORMAT} sortable={true} label="resources.reports.fields.received_ts" />
|
<DateField source="received_ts" showTime options={DATE_FORMAT} sortable={true} label="resources.reports.fields.received_ts" />
|
||||||
|
@ -135,7 +135,7 @@ const RoomDirectoryListActions = () => (
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const RoomDirectoryList = () => (
|
export const RoomDirectoryList = () => (
|
||||||
<List pagination={<RoomDirectoryPagination />} perPage={100} actions={<RoomDirectoryListActions />}>
|
<List pagination={<RoomDirectoryPagination />} perPage={50} actions={<RoomDirectoryListActions />}>
|
||||||
<DatagridConfigurable
|
<DatagridConfigurable
|
||||||
rowClick={id => "/rooms/" + id + "/show"}
|
rowClick={id => "/rooms/" + id + "/show"}
|
||||||
bulkActionButtons={<RoomDirectoryBulkUnpublishButton />}
|
bulkActionButtons={<RoomDirectoryBulkUnpublishButton />}
|
||||||
|
@ -352,6 +352,7 @@ export const RoomList = (props: ListProps) => {
|
|||||||
sort={{ field: "name", order: "ASC" }}
|
sort={{ field: "name", order: "ASC" }}
|
||||||
filters={roomFilters}
|
filters={roomFilters}
|
||||||
actions={<RoomListActions />}
|
actions={<RoomListActions />}
|
||||||
|
perPage={50}
|
||||||
>
|
>
|
||||||
<DatagridConfigurable
|
<DatagridConfigurable
|
||||||
rowClick="show"
|
rowClick="show"
|
||||||
|
@ -37,6 +37,7 @@ export const UserMediaStatsList = (props: ListProps) => (
|
|||||||
filters={userMediaStatsFilters}
|
filters={userMediaStatsFilters}
|
||||||
pagination={<UserMediaStatsPagination />}
|
pagination={<UserMediaStatsPagination />}
|
||||||
sort={{ field: "media_length", order: "DESC" }}
|
sort={{ field: "media_length", order: "DESC" }}
|
||||||
|
perPage={50}
|
||||||
>
|
>
|
||||||
<DatagridConfigurable rowClick={id => "/users/" + id + "/media"} bulkActionButtons={false}>
|
<DatagridConfigurable rowClick={id => "/users/" + id + "/media"} bulkActionButtons={false}>
|
||||||
<TextField source="user_id" label="resources.users.fields.id" />
|
<TextField source="user_id" label="resources.users.fields.id" />
|
||||||
|
@ -166,6 +166,7 @@ export const UserList = (props: ListProps) => (
|
|||||||
sort={{ field: "name", order: "ASC" }}
|
sort={{ field: "name", order: "ASC" }}
|
||||||
actions={<UserListActions />}
|
actions={<UserListActions />}
|
||||||
pagination={<UserPagination />}
|
pagination={<UserPagination />}
|
||||||
|
perPage={50}
|
||||||
>
|
>
|
||||||
<DatagridConfigurable
|
<DatagridConfigurable
|
||||||
rowClick={(id: Identifier, resource: string) => `/${resource}/${id}`}
|
rowClick={(id: Identifier, resource: string) => `/${resource}/${id}`}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user