1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-29 04:01:24 +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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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({