wouldd opened a new issue, #7114: URL: https://github.com/apache/incubator-devlake/issues/7114
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues. ### What happened We have hundreds of repositories and I needed to add ac config scope to them all however you can only select 'all' for the currently displayed page of 10. there is a drop down to select larger page sizes but it does not work. ### What do you expect to happen I expected the drop down to reload the page with the selected number of items per page ### How to reproduce have more than 10 repo connection. select the drop down on the bottom right and select any page size other than 10 ### Anything else this is the git diff patch for the fix: --- a/config-ui/src/routes/connection/connection.tsx +++ b/config-ui/src/routes/connection/connection.tsx @@ -53,7 +53,7 @@ export const Connection = () => { const [operating, setOperating] = useState(false); const [version, setVersion] = useState(1); const [page, setPage] = useState(1); - const [pageSize] = useState(10); + const [pageSize, setPageSize] = useState(10); const [scopeId, setScopeId] = useState<ID>(); const [scopeIds, setScopeIds] = useState<ID[]>([]); const [scopeConfigId, setScopeConfigId] = useState<ID>(); @@ -97,7 +97,7 @@ export const Connection = () => { const handleHideDialog = () => { setType(undefined); }; - + const handleShowDeleteDialog = () => { setType('deleteConnection'); }; @@ -332,6 +332,10 @@ export const Connection = () => { pageSize, total, onChange: setPage, + onShowSizeChange: (current,size)=> { + setPage(1); + setPageSize(size); + } }} rowSelection={{ selectedRowKeys: scopeIds, ### Version master ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
