browser: Send correct arguments for RemoveObjects web handler. (#3848)

Fixes #3839
This commit is contained in:
Krishna Srinivas
2017-03-03 17:07:17 -08:00
committed by Harshavardhana
parent 05e53f1b34
commit 0bae3330e8
4 changed files with 11 additions and 11 deletions

View File

@@ -228,12 +228,13 @@ export default class Browse extends React.Component {
removeObject() {
const {web, dispatch, currentPath, currentBucket, deleteConfirmation} = this.props
web.RemoveObject({
bucketName: currentBucket,
objectName: deleteConfirmation.object
bucketname: currentBucket,
objects: [deleteConfirmation.object]
})
.then(() => {
this.hideDeleteConfirmation()
dispatch(actions.removeObject(deleteConfirmation.object))
let delObject = deleteConfirmation.object.replace(currentPath, '')
dispatch(actions.removeObject(delObject))
})
.catch(e => dispatch(actions.showAlert({
type: 'danger',
@@ -759,4 +760,4 @@ export default class Browse extends React.Component {
</div>
)
}
}
}