1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 13:50:07 +00:00

[dir view] new file: show 'draft' option only for markdown file

This commit is contained in:
llj
2018-12-21 18:05:40 +08:00
parent d0505f65a2
commit 09d665c156

View File

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