From 516f87fc3021c723a74ab9eb706fd48247f5561a Mon Sep 17 00:00:00 2001 From: llj Date: Mon, 29 Jul 2024 09:54:18 +0800 Subject: [PATCH] ['dir view' page] the toolbar: moved the options 'Upload Files', 'Upload Folder' to the first level menu (#6434) --- .../src/components/toolbar/dir-operation-toolbar.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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({