mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 03:41:12 +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:
@@ -119,11 +119,13 @@ class CreateFile extends React.Component {
|
|||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup check>
|
{this.props.fileType == '.md' && (
|
||||||
<Label check>
|
<FormGroup check>
|
||||||
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft.')}
|
<Label check>
|
||||||
</Label>
|
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft.')}
|
||||||
</FormGroup>
|
</Label>
|
||||||
|
</FormGroup>
|
||||||
|
)}
|
||||||
</Form>
|
</Form>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
<ModalFooter>
|
<ModalFooter>
|
||||||
|
Reference in New Issue
Block a user