smitajoshi12 commented on code in PR #6535:
URL: https://github.com/apache/ozone/pull/6535#discussion_r1608489889


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx:
##########
@@ -265,8 +265,8 @@ export class DiskUsage extends 
React.Component<Record<string, object>, IDUState>
 
   updateDisplayLimit(e): void {
     let res = -1;
-    if (e.key === 'all') {
-      res = Number.MAX_VALUE;
+    if (e.key === '30') {
+      res = Number.parseInt(e.key, 10);
     } else {
       res = Number.parseInt(e.key, 10);
     }

Review Comment:
   @dombizita 
   
   In Old design earlier It was  All in dropdown as now we are setting with Max 
limit=30 so we have converted from 30 to parseInt using existing logic.
   
   
   Old Approach
   <img width="277" alt="Screenshot 2024-05-21 at 8 28 52 PM" 
src="https://github.com/apache/ozone/assets/112169209/f80abe93-87bd-49db-a2c0-610f5ce8c317";>
   
   
   



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to