diff --git a/frontend/src/components/toolbar/dir-operation-toolbar.js b/frontend/src/components/toolbar/dir-operation-toolbar.js index 38a4eb7b04..00fa7cff8f 100644 --- a/frontend/src/components/toolbar/dir-operation-toolbar.js +++ b/frontend/src/components/toolbar/dir-operation-toolbar.js @@ -179,11 +179,12 @@ class DirOperationToolbar extends React.Component { if (Utils.isSupportUploadFolder()) { opList.push({ 'icon': 'upload-files', - 'text': gettext('Upload'), - subOpList: [ - { 'text': gettext('Upload Files'), 'onClick': this.onUploadFile }, - { 'text': gettext('Upload Folder'), 'onClick': this.onUploadFolder } - ] + 'text': gettext('Upload Files'), + 'onClick': this.onUploadFile + }, { + 'icon': 'upload-files', + 'text': gettext('Upload Folder'), + 'onClick': this.onUploadFolder }); } else { opList.push({