diff --git a/CHANGELOG.md b/CHANGELOG.md index 328fb36..c20d8a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ * Fix Select User Modal with User Assignment Status Filters pagination issue. Refs UIPFU-87. * Fix select all toggle button issue. Refs UIPFU-89. +* Apply Prev/Next Pagination. Refs UIPFU-49. ## [7.1.0](https://github.com/folio-org/ui-plugin-find-user/tree/v7.1.0) (2024-03-20) [Full Changelog](https://github.com/folio-org/ui-plugin-find-user/compare/v7.0.0...v7.1.0) diff --git a/src/UserSearchContainer.js b/src/UserSearchContainer.js index 8bcbdf9..2aa95cc 100644 --- a/src/UserSearchContainer.js +++ b/src/UserSearchContainer.js @@ -73,6 +73,7 @@ class UserSearchContainer extends React.Component { tenant: '!{tenantId}', records: 'users', resultOffset: '%{resultOffset}', + resultDensity: 'sparse', perRequest: 100, path: 'users', GET: { diff --git a/src/UserSearchView.js b/src/UserSearchView.js index ce37798..546f79c 100644 --- a/src/UserSearchView.js +++ b/src/UserSearchView.js @@ -17,6 +17,7 @@ import { Button, PaneMenu, Checkbox, + MCLPagingTypes, } from '@folio/stripes/components'; import { SearchAndSortQuery, @@ -387,9 +388,8 @@ class UserSearchView extends React.Component { sortDirection={sortOrder.startsWith('-') ? 'descending' : 'ascending'} isEmptyMessage={resultsStatusMessage} autosize - virtualize pageAmount={100} - pagingType="click" + pagingType={MCLPagingTypes.PREV_NEXT} />