mattjackson220 commented on a change in pull request #5490:
URL: https://github.com/apache/trafficcontrol/pull/5490#discussion_r570404372



##########
File path: 
traffic_portal/app/src/common/modules/table/servers/TableServersController.js
##########
@@ -414,6 +414,16 @@ var TableServersController = function(tableName, servers, 
filter, $scope, $state
                        } catch (e) {
                                console.error("Failure to load stored page 
size:", e);
                        }
+                       
+                       try {
+                               const page = localStorage.getItem(tableName + 
"_table_page");
+                               const pageSize = 
$scope.gridOptions.api.paginationGetPageSize();
+                               if (page !== undefined && page > 0 && page <= 
pageSize-1) {

Review comment:
       i think we will also have to do 
`$scope.gridOptions.api.paginationSetPageSize(pageSize);` inside this if after 
the page change




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to