This is an automated email from the ASF dual-hosted git repository. andytaylor pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/activemq-artemis-console.git
commit 5f92a2324281c500bfff526ea238ae005723328c Author: GChuf <[email protected]> AuthorDate: Wed Sep 3 14:23:22 2025 +0200 ARTEMIS-5424 - add perPageOptions to ensure All Items are correctly marked as selected --- .../packages/artemis-console-plugin/src/table/ArtemisTable.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx index c2a8f1f..61a5e7c 100644 --- a/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx +++ b/artemis-console-extension/artemis-extension/packages/artemis-console-plugin/src/table/ArtemisTable.tsx @@ -120,6 +120,7 @@ const operationOptions = [ const [page, setPage] = useState(1); const [isCompact, setIsCompact] = useState(false); const [perPage, setPerPage] = useState(10); + const [perPageOption, setPerPageOption] = useState(1); const pageSize = artemisPreferencesService.loadTablePageSize(broker.storageColumnLocation); const rootElement = document.getElementById('root') as HTMLElement; @@ -220,7 +221,8 @@ const operationOptions = [ setPage(newPage); }; - const handlePerPageSelect = (_event: React.MouseEvent | React.KeyboardEvent | MouseEvent, newPerPage: number, newPage: number) => { + const handlePerPageSelect = (_event: React.MouseEvent | React.KeyboardEvent | MouseEvent, newPerPage: number) => { + setPerPageOption(newPerPage); if(broker.storageColumnLocation) { artemisPreferencesService.saveTablePageSize(broker.storageColumnLocation, newPerPage) } @@ -261,7 +263,7 @@ const operationOptions = [ <Pagination itemCount={resultsSize} page={page} - perPage={perPage} + perPage={perPageOption} onSetPage={handleSetPage} onPerPageSelect={handlePerPageSelect} isCompact={isCompact} @@ -460,4 +462,4 @@ const operationOptions = [ {renderModal()} </React.Fragment> ); -}; +}; \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information, visit: https://activemq.apache.org/contact
