mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 13:24:52 +00:00
[markdown] commented out 'draft' related code (#5721)
This commit is contained in:
@@ -158,13 +158,13 @@ class CreateFile extends React.Component {
|
||||
onChange={this.handleChange}
|
||||
/>
|
||||
</FormGroup>
|
||||
{this.props.fileType == '.md' && isDocs && (
|
||||
{/*this.props.fileType == '.md' && isDocs && (
|
||||
<FormGroup check>
|
||||
<Label check>
|
||||
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft')}
|
||||
</Label>
|
||||
</FormGroup>
|
||||
)}
|
||||
)*/}
|
||||
{/*this.props.fileType == '.sdoc' && (
|
||||
<FormGroup check>
|
||||
<Label check>
|
||||
|
@@ -256,7 +256,7 @@ class MainSideNav extends React.Component {
|
||||
<span className="nav-text">{gettext('Published Libraries')}</span>
|
||||
</Link>
|
||||
</li>
|
||||
{isDocs &&
|
||||
{/*isDocs &&
|
||||
<li className="nav-item" onClick={(e) => this.tabItemClick(e, 'drafts')}>
|
||||
<Link className={`nav-link ellipsis ${this.getActiveClass('drafts')}`} to={siteRoot + 'drafts/'} title={gettext('Drafts')}>
|
||||
<span className="sf2-icon-edit" aria-hidden="true"></span>
|
||||
@@ -264,7 +264,7 @@ class MainSideNav extends React.Component {
|
||||
{this.props.draftCounts > 0 && <span id="draft-num">{this.props.draftCounts}</span>}
|
||||
</Link>
|
||||
</li>
|
||||
}
|
||||
*/}
|
||||
<li className="nav-item">
|
||||
<Link className={`nav-link ellipsis ${this.getActiveClass('linked-devices')}`} to={siteRoot + 'linked-devices/'} title={gettext('Linked Devices')} onClick={(e) => this.tabItemClick(e, 'linked-devices')}>
|
||||
<span className="sf2-icon-monitor" aria-hidden="true"></span>
|
||||
|
@@ -73,7 +73,7 @@ class RepoInfoBar extends React.Component {
|
||||
})}
|
||||
</ul>
|
||||
)}
|
||||
<div className={usedRepoTags.length > 0 ? 'file-info-list mt-1' : 'file-info-list'}>
|
||||
{/*<div className={usedRepoTags.length > 0 ? 'file-info-list mt-1' : 'file-info-list'}>
|
||||
{draftCounts > 0 &&
|
||||
<span className="file-info">
|
||||
<span className="info-icon sf2-icon-drafts"></span>
|
||||
@@ -83,7 +83,7 @@ class RepoInfoBar extends React.Component {
|
||||
</button>
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
</div>*/}
|
||||
{this.state.isListTaggedFileShow && (
|
||||
<ModalPortal>
|
||||
<ListTaggedFilesDialog
|
||||
|
Reference in New Issue
Block a user