diff options
author | 7PH <benjamin.raymond@sonarsource.com> | 2023-05-05 16:25:59 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-05-05 20:03:00 +0000 |
commit | 1f5ba89d35e664c78e6dfd52effdbbe92447750b (patch) | |
tree | 9d60aa7a47d63c85c8f402d752172ab8f1ac7950 /server/sonar-web/src/main/js/apps/groups | |
parent | fefcbdcece48719cc98753629d58e79ec480e101 (diff) | |
download | sonarqube-1f5ba89d35e664c78e6dfd52effdbbe92447750b.tar.gz sonarqube-1f5ba89d35e664c78e6dfd52effdbbe92447750b.zip |
SONAR-18652 Drop usages of deprecated paging mechanism in the frontend API response
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups')
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx | 4 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/components/ViewMembersModal.tsx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx b/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx index 016e04c619f..da97a115279 100644 --- a/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx +++ b/server/sonar-web/src/main/js/apps/groups/components/EditMembersModal.tsx @@ -20,12 +20,12 @@ import { find, without } from 'lodash'; import * as React from 'react'; import { addUserToGroup, getUsersInGroup, removeUserFromGroup } from '../../../api/user_groups'; -import { ResetButtonLink } from '../../../components/controls/buttons'; import Modal from '../../../components/controls/Modal'; import SelectList, { SelectListFilter, SelectListSearchParams, } from '../../../components/controls/SelectList'; +import { ResetButtonLink } from '../../../components/controls/buttons'; import { translate } from '../../../helpers/l10n'; import { Group, UserSelected } from '../../../types/types'; @@ -88,7 +88,7 @@ export default class EditMembersModal extends React.PureComponent<Props, State> lastSearchParams: searchParams, loading: false, users, - usersTotalCount: data.total, + usersTotalCount: data.paging.total, selectedUsers, }; }); diff --git a/server/sonar-web/src/main/js/apps/groups/components/ViewMembersModal.tsx b/server/sonar-web/src/main/js/apps/groups/components/ViewMembersModal.tsx index 799dc108c9f..76d326fad49 100644 --- a/server/sonar-web/src/main/js/apps/groups/components/ViewMembersModal.tsx +++ b/server/sonar-web/src/main/js/apps/groups/components/ViewMembersModal.tsx @@ -20,11 +20,11 @@ import { DeferredSpinner } from 'design-system/lib'; import * as React from 'react'; import { getUsersInGroup } from '../../../api/user_groups'; -import { ResetButtonLink } from '../../../components/controls/buttons'; import ListFooter from '../../../components/controls/ListFooter'; import Modal from '../../../components/controls/Modal'; import SearchBox from '../../../components/controls/SearchBox'; import { SelectListFilter } from '../../../components/controls/SelectList'; +import { ResetButtonLink } from '../../../components/controls/buttons'; import { translate } from '../../../helpers/l10n'; import { Group, UserGroupMember } from '../../../types/types'; @@ -57,7 +57,7 @@ export default function ViewMembersModal(props: Props) { } else { setUsers(data.users); } - setTotal(data.total); + setTotal(data.paging.total); setLoading(false); })(); }, [query, page]); |