mirror of https://github.com/minio/minio.git
Browser: Use object name with prefix to delete sub-path objects (#4013)
This commit is contained in:
parent
6e9c91f43a
commit
5cec6bd80d
|
@ -227,7 +227,12 @@ export default class Browse extends React.Component {
|
||||||
|
|
||||||
removeObject() {
|
removeObject() {
|
||||||
const {web, dispatch, currentPath, currentBucket, deleteConfirmation, checkedObjects} = this.props
|
const {web, dispatch, currentPath, currentBucket, deleteConfirmation, checkedObjects} = this.props
|
||||||
let objects = checkedObjects.length > 0 ? checkedObjects : [deleteConfirmation.object]
|
let objects = []
|
||||||
|
if (checkedObjects.length > 0) {
|
||||||
|
objects = checkedObjects.map(obj => `${currentPath}${obj}`)
|
||||||
|
} else {
|
||||||
|
objects = [deleteConfirmation.object]
|
||||||
|
}
|
||||||
|
|
||||||
web.RemoveObject({
|
web.RemoveObject({
|
||||||
bucketname: currentBucket,
|
bucketname: currentBucket,
|
||||||
|
|
Loading…
Reference in New Issue