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}
|
onChange={this.handleChange}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
{this.props.fileType == '.md' && isDocs && (
|
{/*this.props.fileType == '.md' && isDocs && (
|
||||||
<FormGroup check>
|
<FormGroup check>
|
||||||
<Label check>
|
<Label check>
|
||||||
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft')}
|
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft')}
|
||||||
</Label>
|
</Label>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
)}
|
)*/}
|
||||||
{/*this.props.fileType == '.sdoc' && (
|
{/*this.props.fileType == '.sdoc' && (
|
||||||
<FormGroup check>
|
<FormGroup check>
|
||||||
<Label check>
|
<Label check>
|
||||||
|
@@ -256,7 +256,7 @@ class MainSideNav extends React.Component {
|
|||||||
<span className="nav-text">{gettext('Published Libraries')}</span>
|
<span className="nav-text">{gettext('Published Libraries')}</span>
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
{isDocs &&
|
{/*isDocs &&
|
||||||
<li className="nav-item" onClick={(e) => this.tabItemClick(e, 'drafts')}>
|
<li className="nav-item" onClick={(e) => this.tabItemClick(e, 'drafts')}>
|
||||||
<Link className={`nav-link ellipsis ${this.getActiveClass('drafts')}`} to={siteRoot + 'drafts/'} title={gettext('Drafts')}>
|
<Link className={`nav-link ellipsis ${this.getActiveClass('drafts')}`} to={siteRoot + 'drafts/'} title={gettext('Drafts')}>
|
||||||
<span className="sf2-icon-edit" aria-hidden="true"></span>
|
<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>}
|
{this.props.draftCounts > 0 && <span id="draft-num">{this.props.draftCounts}</span>}
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
}
|
*/}
|
||||||
<li className="nav-item">
|
<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')}>
|
<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>
|
<span className="sf2-icon-monitor" aria-hidden="true"></span>
|
||||||
|
@@ -73,7 +73,7 @@ class RepoInfoBar extends React.Component {
|
|||||||
})}
|
})}
|
||||||
</ul>
|
</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 &&
|
{draftCounts > 0 &&
|
||||||
<span className="file-info">
|
<span className="file-info">
|
||||||
<span className="info-icon sf2-icon-drafts"></span>
|
<span className="info-icon sf2-icon-drafts"></span>
|
||||||
@@ -83,7 +83,7 @@ class RepoInfoBar extends React.Component {
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
</div>
|
</div>*/}
|
||||||
{this.state.isListTaggedFileShow && (
|
{this.state.isListTaggedFileShow && (
|
||||||
<ModalPortal>
|
<ModalPortal>
|
||||||
<ListTaggedFilesDialog
|
<ListTaggedFilesDialog
|
||||||
|
Reference in New Issue
Block a user