1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 09:51:26 +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

@@ -6,6 +6,13 @@ import TreeDirView from '../../components/tree-dir-view/tree-dir-view';
class MainPanel extends Component {
constructor(props) {
super(props);
this.state = {
needOperationGroupo: false
};
}
onMenuClick = () => {
this.props.onMenuClick();
}
@@ -82,7 +89,10 @@ class MainPanel extends Component {
{ !this.props.isViewFileState &&
<TreeDirView
node={this.props.changedNode}
needOperationGroupo={this.state.needOperationGroupo}
onMainNodeClick={this.props.onMainNodeClick}
onDeleteItem={this.props.onDeleteNode}
onRenameItem={this.props.onRenameNode}
>
</TreeDirView>
}