1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +00:00

Adjust Draft Page (#3288)

* add start review

* adjust draft page
This commit is contained in:
Michael An
2019-04-17 10:31:17 +08:00
committed by Daniel Pan
parent 7e23be8ea7
commit c1453c6f3d
4 changed files with 41 additions and 14 deletions

View File

@@ -503,7 +503,6 @@ class MarkdownEditor extends React.Component {
const contentLength = res.data.length;
let isBlankFile = (contentLength === 0 || contentLength === 1);
let hasPermission = (this.state.fileInfo.permission === 'rw');
let isEditMode = mode === 'edit' ? true : false;
let value = deserialize(res.data);
this.setState({
markdownContent: res.data,
@@ -661,7 +660,6 @@ class MarkdownEditor extends React.Component {
render() {
let component;
let sidePanel = this.state.isShowHistory ? true : false;
if (this.state.loading) {
return (
<div className="empty-loading-page">