mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Merge pull request #3474 from gradido/frontend_fix_information_query
fix(frontend): set explicit page size for admin and moderator user on information page
This commit is contained in:
commit
678b09e7da
@ -256,8 +256,8 @@ export const communityStatistics = gql`
|
||||
`
|
||||
|
||||
export const searchAdminUsers = gql`
|
||||
query {
|
||||
searchAdminUsers {
|
||||
query ($pageSize: Int = 25, $currentPage: Int = 1, $order: Order = ASC) {
|
||||
searchAdminUsers(pageSize: $pageSize, currentPage: $currentPage, order: $order) {
|
||||
userCount
|
||||
userList {
|
||||
firstName
|
||||
|
||||
@ -49,7 +49,11 @@ const moderators = computed(() => itemsAdminUser.value.filter((item) => item.rol
|
||||
|
||||
const { onResult: onContributionLinksResult, onError: onContributionLinksError } =
|
||||
useQuery(listContributionLinks)
|
||||
const { onResult: onAdminUsersResult, onError: onAdminUsersError } = useQuery(searchAdminUsers)
|
||||
const { onResult: onAdminUsersResult, onError: onAdminUsersError } = useQuery(searchAdminUsers, {
|
||||
pageSize: 25,
|
||||
currentPage: 1,
|
||||
order: 'ASC',
|
||||
})
|
||||
|
||||
onContributionLinksResult(({ data }) => {
|
||||
if (data) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user