From c69f9c9f1d8eb10cbdc53e10cbc4a06372e78c0c Mon Sep 17 00:00:00 2001 From: shamalka Date: Wed, 9 Oct 2019 17:57:05 +0530 Subject: [PATCH] Fix spelling mistakes --- .../src/components/Devices/BulkActionBar.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/device-mgt/io.entgra.device.mgt.ui/react-app/src/components/Devices/BulkActionBar.js b/components/device-mgt/io.entgra.device.mgt.ui/react-app/src/components/Devices/BulkActionBar.js index b8076683dae..55fac8e17c1 100644 --- a/components/device-mgt/io.entgra.device.mgt.ui/react-app/src/components/Devices/BulkActionBar.js +++ b/components/device-mgt/io.entgra.device.mgt.ui/react-app/src/components/Devices/BulkActionBar.js @@ -26,24 +26,24 @@ class BulkActionBar extends React.Component { this.state = { selectedMultiple: false, selectedSingle: false, - deleteable: true, + canDelete: true, } } - //This method is used to trigger delete request on selected devices + //This method checks whether NON-REMOVED devices are selected onDeleteDeviceCall = () => { let i; for(i=0; i < this.props.selectedRows.length; i++){ if(this.props.selectedRows[i].enrolmentInfo.status != "REMOVED"){ - this.setState({deletable:false}); + this.setState({canDelete:false}); break; } - this.setState({deletable:true}); + this.setState({canDelete:true}); } }; onConfirmDelete = () => { - if (this.state.deletable) { + if (this.state.canDelete) { this.props.deleteDevice(); } }; @@ -67,7 +67,7 @@ class BulkActionBar extends React.Component {