1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

frontend: show pagination total count in more lists

This commit is contained in:
Quentin Gliech
2023-07-21 19:14:59 +02:00
parent bbc50edb60
commit c454f5604b
7 changed files with 40 additions and 7 deletions

View File

@@ -57,6 +57,7 @@ const QUERY = graphql(/* GraphQL */ `
}
}
totalCount
pageInfo {
hasNextPage
hasPreviousPage
@@ -128,6 +129,7 @@ const OAuth2SessionList: React.FC<Props> = ({ userId }) => {
<PaginationControls
onPrev={prevPage ? (): void => paginate(prevPage) : null}
onNext={nextPage ? (): void => paginate(nextPage) : null}
count={oauth2Sessions.totalCount}
disabled={pending}
/>
{oauth2Sessions.edges.map((n) => (