mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 05:39:59 +00:00
optimize code
This commit is contained in:
@@ -51,7 +51,6 @@ class HeaderToolbar extends React.Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
console.log('aaa');
|
||||
let { contentChanged, saving, isLocked, lockedByMe } = this.props;
|
||||
let canPublishDraft = this.props.fileInfo.permission == 'rw';
|
||||
let canCreateDraft = canPublishDraft && (!this.props.hasDraft && !this.props.isDraft && this.props.isDocs);
|
||||
|
Reference in New Issue
Block a user