1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

['dir view' page] the toolbar: moved the options 'Upload Files', 'Upload Folder' to the first level menu (#6434)

This commit is contained in:
llj
2024-07-29 09:54:18 +08:00
committed by GitHub
parent 3d36504ce6
commit 516f87fc30

View File

@@ -179,11 +179,12 @@ class DirOperationToolbar extends React.Component {
if (Utils.isSupportUploadFolder()) { if (Utils.isSupportUploadFolder()) {
opList.push({ opList.push({
'icon': 'upload-files', 'icon': 'upload-files',
'text': gettext('Upload'), 'text': gettext('Upload Files'),
subOpList: [ 'onClick': this.onUploadFile
{ 'text': gettext('Upload Files'), 'onClick': this.onUploadFile }, }, {
{ 'text': gettext('Upload Folder'), 'onClick': this.onUploadFolder } 'icon': 'upload-files',
] 'text': gettext('Upload Folder'),
'onClick': this.onUploadFolder
}); });
} else { } else {
opList.push({ opList.push({