1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +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

@@ -5,6 +5,7 @@ import { IconButton, ButtonGroup, CollabUsersButton } from '@seafile/seafile-edi
import FileInfo from '@seafile/seafile-editor/dist/components/topbarcomponent/file-info';
const propTypes = {
isDocs: PropTypes.bool.isRequired,
hasDraft: PropTypes.bool.isRequired,
isDraft: PropTypes.bool.isRequired,
editorUtilities: PropTypes.object.isRequired,
@@ -42,7 +43,7 @@ class MarkdownViewerToolbar extends React.Component {
</div>
}
<div className="topbar-btn-container">
{ (!this.props.hasDraft && !this.props.isDraft) &&
{ (!this.props.hasDraft && !this.props.isDraft && this.props.isDocs) &&
<button onMouseDown={this.props.toggleNewDraft} className="btn btn-success btn-new-draft">
{gettext('New Draft')}</button>
}