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:
@@ -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}>
|
||||
|
Reference in New Issue
Block a user