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

Remove some features from the open source version (#3192)

This commit is contained in:
陈钦亮
2019-03-29 18:15:39 +08:00
committed by Daniel Pan
parent 123b0585a2
commit e4de5c64b7
9 changed files with 45 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { gettext, isDocs } from '../../utils/constants';
import { Utils } from '../../utils/utils';
const propTypes = {
@@ -136,7 +136,7 @@ class CreateFile extends React.Component {
onChange={this.handleChange}
/>
</FormGroup>
{this.props.fileType == '.md' && (
{this.props.fileType == '.md' && isDocs && (
<FormGroup check>
<Label check>
<Input type="checkbox" onChange={this.handleCheck}/>{' '}{gettext('This is a draft')}