1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 03:11:07 +00:00

repair wiki bug (#2344)

* repair wiki bug

* optimized code

* optimized code
This commit is contained in:
shanshuirenjia
2018-09-05 17:44:14 +08:00
committed by Daniel Pan
parent 508f5c705f
commit eab6c6fe61
8 changed files with 123 additions and 142 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react';
import MenuControl from '../menu-component/node-menu-control'
import MenuControl from '../menu-component/node-menu-control';
import { permission } from '../constance';
function sortByType(a, b) {
if (a.type == "dir" && b.type != "dir") {
@@ -110,7 +111,6 @@ class TreeNodeView extends React.Component {
paddingLeft={this.props.paddingLeft}
treeView={this.props.treeView}
isNodeItemFrezee={this.props.isNodeItemFrezee}
permission={this.props.permission}
currentFilePath={this.props.currentFilePath}
onDirCollapse={this.props.onDirCollapse}
/>
@@ -124,7 +124,7 @@ class TreeNodeView extends React.Component {
}
renderMenuController() {
if (this.props.permission === "rw") {
if (permission === "True") {
let isShow = (this.props.node.path === this.props.currentFilePath);
return (
<div className="right-icon">