1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +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

@@ -4,7 +4,7 @@ import 'whatwg-fetch';
import { Value, Document, Block } from 'slate';
import { seafileAPI } from './utils/seafile-api';
import { Utils } from './utils/utils';
import { gettext } from './utils/constants';
import { gettext, isDocs } from './utils/constants';
import io from 'socket.io-client';
import toaster from './components/toast';
import ModalPortal from './components/modal-portal';
@@ -909,6 +909,11 @@ class MarkdownEditor extends React.Component {
}
toggleHistory = () => {
if (!isDocs) {
window.location.href = siteRoot + 'repo/file_revisions/' + repoID + '/?p=' + Utils.encodePath(filePath);
return;
}
if (this.state.isShowHistory) {
this.setState({
isShowHistory: false,
@@ -972,6 +977,7 @@ class MarkdownEditor extends React.Component {
component = (
<div className="seafile-md-viewer d-flex flex-column">
<MarkdownViewerToolbar
isDocs={isDocs}
hasDraft={hasDraft}
isDraft={isDraft}
editorUtilities={editorUtilities}