mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 13:24:52 +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',
|
'icon': 'upload-files',
|
||||||
'text': gettext('Upload Folder'),
|
'text': gettext('Upload Folder'),
|
||||||
'onClick': this.onUploadFolder
|
'onClick': this.onUploadFolder
|
||||||
}, {
|
|
||||||
'icon': 'import-sdoc',
|
|
||||||
'text': gettext('Import sdoc'),
|
|
||||||
'onClick': this.onUploadSdoc
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
opList.push({
|
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 = (
|
content = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Dropdown isOpen={this.state.isDesktopMenuOpen} toggle={this.toggleDesktopOpMenu}>
|
<Dropdown isOpen={this.state.isDesktopMenuOpen} toggle={this.toggleDesktopOpMenu}>
|
||||||
|
Reference in New Issue
Block a user