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

Optimize sdoc created (#6031)

* optimize code

* optimize code
This commit is contained in:
杨顺强
2024-04-22 17:39:13 +08:00
committed by GitHub
parent 453899b846
commit 50be4b437c
7 changed files with 12 additions and 6 deletions

View File

@@ -179,7 +179,7 @@ class DirOperationToolbar extends React.Component {
let content = null;
if (Utils.isDesktop()) {
let { showShareBtn } = this.props;
const { showShareBtn, repoEncrypted } = this.props;
content = (
<Fragment>
{canUpload && (
@@ -210,7 +210,7 @@ class DirOperationToolbar extends React.Component {
<button className="dropdown-item" onClick={this.onCreateExcelToggle} role="menuitem">{gettext('New Excel File')}</button>
<button className="dropdown-item" onClick={this.onCreatePPTToggle} role="menuitem">{gettext('New PowerPoint File')}</button>
<button className="dropdown-item" onClick={this.onCreateWordToggle} role="menuitem">{gettext('New Word File')}</button>
{enableSeadoc && <button className="dropdown-item" onClick={this.onCreateSeaDocToggle} role="menuitem">{gettext('New SeaDoc File')} (beta)</button>}
{enableSeadoc && !repoEncrypted && <button className="dropdown-item" onClick={this.onCreateSeaDocToggle} role="menuitem">{gettext('New SeaDoc File')} (beta)</button>}
</div>
)}
</Fragment>