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

abstract dir-operation-toolbar and view-mode-toolbar (#2569)

This commit is contained in:
杨顺强
2018-11-28 08:57:42 +08:00
committed by Daniel Pan
parent 0b022029e5
commit 330407be0b
17 changed files with 247 additions and 200 deletions

View File

@@ -135,7 +135,7 @@ class TreeNodeView extends React.Component {
renderMenuController() {
if (permission) {
let isShow = (this.props.node.path === this.props.currentFilePath);
let isShow = (this.props.node.path === this.props.currentPath);
return (
<div className="right-icon">
<MenuControl
@@ -180,7 +180,7 @@ class TreeNodeView extends React.Component {
let node = this.props.node;
let { type, icon } = this.getNodeTypeAndIcon();
let hlClass = '';
if (node.path === this.props.currentFilePath) {
if (node.path === this.props.currentPath) {
hlClass = 'tree-node-hight-light';
}