From 28b80d7fa290a41b3cb79ba0b31d03f707e8b3d6 Mon Sep 17 00:00:00 2001 From: Aine Date: Sat, 30 Nov 2024 21:49:05 +0200 Subject: [PATCH] Show 50 elements by default in the list of each resource --- src/resources/destinations.tsx | 1 + src/resources/registration_tokens.tsx | 2 +- src/resources/reports.tsx | 2 +- src/resources/room_directory.tsx | 2 +- src/resources/rooms.tsx | 1 + src/resources/user_media_statistics.tsx | 1 + src/resources/users.tsx | 1 + 7 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/resources/destinations.tsx b/src/resources/destinations.tsx index 6abc0bc..69a1c05 100644 --- a/src/resources/destinations.tsx +++ b/src/resources/destinations.tsx @@ -123,6 +123,7 @@ export const DestinationList = (props: ListProps) => { filters={destinationFilters} pagination={} sort={{ field: "destination", order: "ASC" }} + perPage={50} > `${id}/show/rooms`} bulkActionButtons={false}> diff --git a/src/resources/registration_tokens.tsx b/src/resources/registration_tokens.tsx index 9fed7cb..f6a412d 100644 --- a/src/resources/registration_tokens.tsx +++ b/src/resources/registration_tokens.tsx @@ -38,7 +38,7 @@ export const RegistrationTokenList = (props: ListProps) => ( filters={registrationTokenFilters} filterDefaultValues={{ valid: true }} pagination={false} - perPage={500} + perPage={50} > diff --git a/src/resources/reports.tsx b/src/resources/reports.tsx index 03488fb..c9ecfd4 100644 --- a/src/resources/reports.tsx +++ b/src/resources/reports.tsx @@ -90,7 +90,7 @@ const ReportShowActions = () => { }; export const ReportList = (props: ListProps) => ( - } sort={{ field: "received_ts", order: "DESC" }}> + } perPage={50} sort={{ field: "received_ts", order: "DESC" }}> diff --git a/src/resources/room_directory.tsx b/src/resources/room_directory.tsx index 9e62afd..cc310f0 100644 --- a/src/resources/room_directory.tsx +++ b/src/resources/room_directory.tsx @@ -135,7 +135,7 @@ const RoomDirectoryListActions = () => ( ); export const RoomDirectoryList = () => ( - } perPage={100} actions={}> + } perPage={50} actions={}> "/rooms/" + id + "/show"} bulkActionButtons={} diff --git a/src/resources/rooms.tsx b/src/resources/rooms.tsx index 24f4eab..4cf53e9 100644 --- a/src/resources/rooms.tsx +++ b/src/resources/rooms.tsx @@ -352,6 +352,7 @@ export const RoomList = (props: ListProps) => { sort={{ field: "name", order: "ASC" }} filters={roomFilters} actions={} + perPage={50} > ( filters={userMediaStatsFilters} pagination={} sort={{ field: "media_length", order: "DESC" }} + perPage={50} > "/users/" + id + "/media"} bulkActionButtons={false}> diff --git a/src/resources/users.tsx b/src/resources/users.tsx index 1b6e2c7..644385e 100644 --- a/src/resources/users.tsx +++ b/src/resources/users.tsx @@ -166,6 +166,7 @@ export const UserList = (props: ListProps) => ( sort={{ field: "name", order: "ASC" }} actions={} pagination={} + perPage={50} > `/${resource}/${id}`}