1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

Merge pull request #2692 from haiwen/draft-only-for-md

[dir view] new file: show 'draft' option only for markdown file
This commit is contained in:
Daniel Pan
2018-12-21 18:09:02 +08:00
committed by GitHub

View File

@@ -119,11 +119,13 @@ class CreateFile extends React.Component {
onChange={this.handleChange}
/>
</FormGroup>
<FormGroup check>
<Label check>
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft.')}
</Label>
</FormGroup>
{this.props.fileType == '.md' && (
<FormGroup check>
<Label check>
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft.')}
</Label>
</FormGroup>
)}
</Form>
</ModalBody>
<ModalFooter>