mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 18:03:48 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -101,7 +101,7 @@ class RepoListItem extends React.Component {
|
||||
loadNodeAndParentsByPath = (repoID, path) => {
|
||||
|
||||
let tree = this.state.treeData.clone();
|
||||
|
||||
|
||||
seafileAPI.listDir(repoID, path, {with_parents: true}).then(res => {
|
||||
let direntList = res.data.dirent_list;
|
||||
direntList = direntList.filter(item => item.type === 'dir');
|
||||
@@ -169,13 +169,13 @@ class RepoListItem extends React.Component {
|
||||
<div className="item-left-icon">
|
||||
<span className={`item-toggle icon fa ${this.state.isShowChildren ? 'fa-caret-down' : 'fa-caret-right'}`} onClick={this.onToggleClick}></span>
|
||||
<i className="tree-node-icon">
|
||||
<span className="icon far fa-folder tree-node-icon"></span>
|
||||
<span className="icon far fa-folder tree-node-icon"></span>
|
||||
</i>
|
||||
</div>
|
||||
</div>
|
||||
{this.state.isShowChildren && (
|
||||
<TreeListView
|
||||
repo={this.props.repo}
|
||||
<TreeListView
|
||||
repo={this.props.repo}
|
||||
onDirentItemClick={this.onDirentItemClick}
|
||||
selectedRepo={this.props.selectedRepo}
|
||||
selectedPath={this.props.selectedPath}
|
||||
|
Reference in New Issue
Block a user