1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

Wiki optimized third (#2406)

This commit is contained in:
shanshuirenjia
2018-09-29 15:47:53 +08:00
committed by Daniel Pan
parent 5cffd4cb69
commit 3ab4cbff4f
22 changed files with 612 additions and 107 deletions

View File

@@ -10,8 +10,9 @@ class MainPanel extends Component {
constructor(props) {
super(props);
this.state = {
isWikiMode: true
}
isWikiMode: true,
needOperationGroup: true,
};
}
onMenuClick = () => {
@@ -90,7 +91,7 @@ class MainPanel extends Component {
<a href={siteRoot + 'wiki/lib/' + repoID + '/'} className="normal">{slug}</a>
{pathElem}
</div>
<PathToolbar />
<PathToolbar filePath={this.props.filePath}/>
</div>
<div className="cur-view-content">
{ this.props.isViewFileState &&
@@ -106,6 +107,9 @@ class MainPanel extends Component {
<TreeDirView
node={this.props.changedNode}
onMainNodeClick={this.props.onMainNodeClick}
onDeleteItem={this.props.onDeleteNode}
onRenameItem={this.props.onRenameNode}
needOperationGroup={this.state.needOperationGroup}
>
</TreeDirView>
}