You've already forked authentication-service
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:
@@ -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) => (
|
||||
|
||||
Reference in New Issue
Block a user