1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

wiki-init-bug (#2325)

* wiki-init-bug

* repair wiki init load bug

* add wiki file
This commit is contained in:
shanshuirenjia
2018-09-01 13:48:20 +08:00
committed by Daniel Pan
parent 4b97e41be2
commit 18b3b68ae5
4 changed files with 14 additions and 16 deletions

View File

@@ -114,7 +114,7 @@ class TreeNodeView extends React.Component {
treeView={this.props.treeView}
isNodeItemFrezee={this.props.isNodeItemFrezee}
permission={this.props.permission}
currentFileNode={this.props.currentFileNode}
currentFilePath={this.props.currentFilePath}
/>
);
})}
@@ -173,7 +173,7 @@ class TreeNodeView extends React.Component {
let node = this.props.node;
let { type, icon } = this.getNodeTypeAndIcon();
let hlClass = "";
if (node.path === this.props.currentFileNode.path) {
if (node.path === this.props.currentFilePath) {
hlClass = "tree-node-hight-light";
}
let customClass = "tree-node " + hlClass;

View File

@@ -53,7 +53,7 @@ class TreeView extends React.PureComponent {
node={this.props.treeData.root}
isNodeItemFrezee={this.props.isNodeItemFrezee}
permission={this.props.permission}
currentFileNode={this.props.currentFileNode}
currentFilePath={this.props.currentFilePath}
onShowContextMenu={this.props.onShowContextMenu}
/>
</div>