Skip to content

Commit

Permalink
Fixes #36368 - fix ansible roles pagination on host edit page
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a95285)
  • Loading branch information
nofaralfasi committed Aug 9, 2023
1 parent 901016e commit 28756ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class AnsibleRolesSwitcher extends React.Component {
inheritedRoleIds,
resourceId,
resourceName,
{ page: 1, perPage: 10 },
excludeAssignedRolesSearch(initialAssignedRoles)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const AvailableRolesList = ({
<Pagination
viewType="list"
itemCount={itemCount}
pagination={pagination}
updateParamsByUrl={false}
page={pagination.page}
perPage={pagination.perPage}
onChange={onListingChange}
dropdownButtonId="available-ansible-roles-pagination-row-dropdown"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ exports[`AvailableRolesList should render 1`] = `
onPerPageSelect={null}
onSetPage={null}
page={1}
pagination={
Object {
"page": 1,
"perPage": 25,
}
}
perPage={null}
updateParamsByUrl={true}
perPage={25}
updateParamsByUrl={false}
variant="bottom"
viewType="list"
/>
Expand Down

0 comments on commit 28756ee

Please sign in to comment.