devabhishekpal commented on code in PR #6411:
URL: https://github.com/apache/ozone/pull/6411#discussion_r1616650147
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/datanodes/datanodes.tsx:
##########
@@ -420,6 +423,25 @@ export class Datanodes extends
React.Component<Record<string, object>, IDatanode
showDataFetchError(error.toString());
});
};
+
+ removeDatanode= async (selectedRowKeys: any) => {
+ try {
+ await axios.put('/api/v1/datanodes/remove', selectedRowKeys);
Review Comment:
Could we update this to use the axios helpers? Since this is a PUT operation
it would be better we ensure the request is cancelled if we are changing
context.
--
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]