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

open view mode (#3101)

This commit is contained in:
Michael An
2019-03-13 11:01:09 +08:00
committed by Daniel Pan
parent e5886f73f4
commit 21ed3e5a6d
2 changed files with 2 additions and 2 deletions

View File

@@ -530,7 +530,7 @@ 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 = this.state.mode;
let isEditMode = mode === 'edit' ? true : false;
this.setState({
markdownContent: res.data,
loading: false,