1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +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> </Label>
</FormGroup> </FormGroup>
)} )}
{this.props.fileType == '.sdoc' && ( {/*this.props.fileType == '.sdoc' && (
<FormGroup check> <FormGroup check>
<Label check> <Label check>
<Input type="checkbox" checked={isSdocDraft} onChange={this.toggleMarkSdocDraft}/> <Input type="checkbox" checked={isSdocDraft} onChange={this.toggleMarkSdocDraft}/>
<span>{gettext('Mark as draft')}</span> <span>{gettext('Mark as draft')}</span>
</Label> </Label>
</FormGroup> </FormGroup>
)} )*/}
</Form> </Form>
{this.state.errMessage && <Alert color="danger" className="mt-2">{this.state.errMessage}</Alert>} {this.state.errMessage && <Alert color="danger" className="mt-2">{this.state.errMessage}</Alert>}
</ModalBody> </ModalBody>

View File

@@ -742,9 +742,9 @@ class DirentListItem extends React.Component {
<a className="sf-link" onClick={this.onItemClick}>{dirent.name}</a> : <a className="sf-link" onClick={this.onItemClick}>{dirent.name}</a> :
<a href={dirent.type === 'dir' ? dirHref : fileHref} 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> <span className="dirent-sdoc-draft-identifier">{gettext('Draft')}</span>
} */}
</Fragment> </Fragment>
)} )}
</td> </td>

View File

@@ -608,6 +608,7 @@ export const Utils = {
} }
if (permission == 'rw') { if (permission == 'rw') {
/*
if (Utils.isSdocFile(dirent.name)) { if (Utils.isSdocFile(dirent.name)) {
if (dirent.is_sdoc_draft) { if (dirent.is_sdoc_draft) {
list.push(UNMARK_AS_DRAFT); list.push(UNMARK_AS_DRAFT);
@@ -615,6 +616,7 @@ export const Utils = {
list.push(MARK_AS_DRAFT); list.push(MARK_AS_DRAFT);
} }
} }
*/
list.push('Divider'); list.push('Divider');
list.push(PROPERTIES, HISTORY); list.push(PROPERTIES, HISTORY);
if (isPro && fileAuditEnabled) { if (isPro && fileAuditEnabled) {