1
0
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:
llj
2023-10-31 10:14:43 +08:00
committed by GitHub
parent 2e97b4e341
commit a7e814bcf1
3 changed files with 6 additions and 4 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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) {