Support S3 delete
This commit is contained in:
@@ -10,7 +10,7 @@ import configureImage from '../../../assets/images/configure.png';
|
||||
import RootElem from '../../../components/UI/RootElem/RootElem';
|
||||
import {
|
||||
displayConfiguration,
|
||||
removeRemoteMount,
|
||||
removeMount,
|
||||
setProviderState
|
||||
} from '../../../redux/actions/mount_actions';
|
||||
import {
|
||||
@@ -34,7 +34,7 @@ const mapDispatchToProps = dispatch => {
|
||||
displayConfiguration: (provider, remote, s3) => dispatch(displayConfiguration(provider, remote, s3)),
|
||||
displaySkynetExport: display => dispatch(displaySkynetExport(display)),
|
||||
displaySkynetImport: display => dispatch(displaySkynetImport(display)),
|
||||
removeRemoteMount: provider => dispatch(removeRemoteMount(provider)),
|
||||
removeMount: provider => dispatch(removeMount(provider)),
|
||||
setProviderState: (provider, state) => dispatch(setProviderState(provider, state)),
|
||||
}
|
||||
};
|
||||
@@ -155,14 +155,14 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
|
||||
);
|
||||
|
||||
let removeControl;
|
||||
if (props.remote) {
|
||||
if (props.allowRemove) {
|
||||
const removeDisabled = !props.MState.AllowMount || props.MState.Mounted;
|
||||
const removeStyle = {
|
||||
cursor: removeDisabled ? 'no-drop' : 'pointer'
|
||||
};
|
||||
const handleRemoveMount = () => {
|
||||
if (!removeDisabled) {
|
||||
props.removeRemoteMount(props.provider);
|
||||
props.removeMount(props.provider);
|
||||
}
|
||||
};
|
||||
removeControl = (
|
||||
|
||||
Reference in New Issue
Block a user