mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 08:53:14 +00:00
[sdoc] commented out 'draft' related code (#5723)
This commit is contained in:
@@ -165,14 +165,14 @@ class CreateFile extends React.Component {
|
||||
</Label>
|
||||
</FormGroup>
|
||||
)}
|
||||
{this.props.fileType == '.sdoc' && (
|
||||
{/*this.props.fileType == '.sdoc' && (
|
||||
<FormGroup check>
|
||||
<Label check>
|
||||
<Input type="checkbox" checked={isSdocDraft} onChange={this.toggleMarkSdocDraft}/>
|
||||
<span>{gettext('Mark as draft')}</span>
|
||||
</Label>
|
||||
</FormGroup>
|
||||
)}
|
||||
)*/}
|
||||
</Form>
|
||||
{this.state.errMessage && <Alert color="danger" className="mt-2">{this.state.errMessage}</Alert>}
|
||||
</ModalBody>
|
||||
|
@@ -742,9 +742,9 @@ class DirentListItem extends React.Component {
|
||||
<a className="sf-link" onClick={this.onItemClick}>{dirent.name}</a> :
|
||||
<a href={dirent.type === 'dir' ? dirHref : fileHref} onClick={this.onItemClick}>{dirent.name}</a>
|
||||
}
|
||||
{(Utils.isSdocFile(dirent.name) && dirent.is_sdoc_draft) &&
|
||||
{/*(Utils.isSdocFile(dirent.name) && dirent.is_sdoc_draft) &&
|
||||
<span className="dirent-sdoc-draft-identifier">{gettext('Draft')}</span>
|
||||
}
|
||||
*/}
|
||||
</Fragment>
|
||||
)}
|
||||
</td>
|
||||
|
@@ -608,6 +608,7 @@ export const Utils = {
|
||||
}
|
||||
|
||||
if (permission == 'rw') {
|
||||
/*
|
||||
if (Utils.isSdocFile(dirent.name)) {
|
||||
if (dirent.is_sdoc_draft) {
|
||||
list.push(UNMARK_AS_DRAFT);
|
||||
@@ -615,6 +616,7 @@ export const Utils = {
|
||||
list.push(MARK_AS_DRAFT);
|
||||
}
|
||||
}
|
||||
*/
|
||||
list.push('Divider');
|
||||
list.push(PROPERTIES, HISTORY);
|
||||
if (isPro && fileAuditEnabled) {
|
||||
|
Reference in New Issue
Block a user