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:
committed by
Daniel Pan
parent
508f5c705f
commit
eab6c6fe61
@@ -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">
|
||||
|
Reference in New Issue
Block a user