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:
@@ -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';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user