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


##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx:
##########
@@ -436,8 +453,38 @@ export class Datanodes extends 
React.Component<Record<string, object>, IDatanode
     console.log(current, pageSize);
   };
 
+  onSelectChange = (newSelectedRowKeys:any) => {
+    this.setState({
+      selectedRowKeys: newSelectedRowKeys
+    });
+  };
+
+  onDisable = (record:any) => {
+    //Enable Record for Remove whos state is Dead or operation state 
Decommissioned or In Maintenance
+    if (record.state !== 'DEAD') {
+      return record.opState === 'IN_SERVICE' || record.opState === 
'ENTERING_MAINTENANCE' || record.opState === 'DECOMMISSIONING';
+    }

Review Comment:
   @dombizita 
   
   Corrected Comments in latest commits.
   
   



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