1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

['dir view'] 'Import sdoc': moved it down to the bottom of the menu; added the right conditions for it (#6797)

This commit is contained in:
llj
2024-09-19 16:25:50 +08:00
committed by GitHub
parent 4022ce1b4c
commit bd526aea7e

View File

@@ -223,10 +223,6 @@ class DirOperationToolbar extends React.Component {
'icon': 'upload-files',
'text': gettext('Upload Folder'),
'onClick': this.onUploadFolder
}, {
'icon': 'import-sdoc',
'text': gettext('Import sdoc'),
'onClick': this.onUploadSdoc
});
} else {
opList.push({
@@ -267,6 +263,14 @@ class DirOperationToolbar extends React.Component {
});
}
if (enableSeadoc && !repoEncrypted) {
opList.push('Divider', {
'icon': 'import-sdoc',
'text': gettext('Import sdoc'),
'onClick': this.onUploadSdoc
});
}
content = (
<Fragment>
<Dropdown isOpen={this.state.isDesktopMenuOpen} toggle={this.toggleDesktopOpMenu}>