mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 23:48:47 +00:00
repair new draft bug
This commit is contained in:
@@ -57,7 +57,7 @@ class LibContentView extends React.Component {
|
||||
currentNode: null,
|
||||
isFileLoading: true,
|
||||
isFileLoadedErr: false,
|
||||
filePermission: true,
|
||||
filePermission: '',
|
||||
content: '',
|
||||
lastModified: '',
|
||||
latestContributor: '',
|
||||
@@ -352,7 +352,7 @@ class LibContentView extends React.Component {
|
||||
seafileAPI.getFileContent(res.data).then((res) => {
|
||||
this.setState({
|
||||
content: res.data,
|
||||
filePermission: permission === 'rw' || permission === 'cloud-edit',
|
||||
filePermission: permission,
|
||||
latestContributor: last_modifier_name,
|
||||
lastModified: moment.unix(mtime).fromNow(),
|
||||
isFileLoading: false,
|
||||
|
Reference in New Issue
Block a user