From ec0e1511bf4e0c541f208da39daf31ad98fae218 Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Wed, 12 Jun 2019 17:59:08 +0800 Subject: [PATCH] modify func name --- .../src/pages/lib-content-view/lib-content-view.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index 016a909dae..68dcc50b60 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -538,7 +538,7 @@ class LibContentView extends React.Component { getThumbnail(0); } - getListDir = (temporaryData, path) => { + updateMoveCopyTreeNode = (temporaryData, path) => { let repoID = this.props.repoID; seafileAPI.listDir(repoID, path).then(res => { @@ -570,7 +570,7 @@ class LibContentView extends React.Component { let tree = this.state.treeData.clone(); let node = tree.getNodeByPath(destDirentPath); let temporaryData = node.children.map(item => item.object); - this.getListDir(temporaryData, node.path); + this.updateMoveCopyTreeNode(temporaryData, node.path); } } let message = Utils.getMoveSuccessMessage(dirNames); @@ -592,7 +592,7 @@ class LibContentView extends React.Component { let tree = this.state.treeData.clone(); let node = tree.getNodeByPath(destDirentPath); let temporaryData = node.children.map(item => item.object); - this.getListDir(temporaryData, node.path); + this.updateMoveCopyTreeNode(temporaryData, node.path); } } @@ -892,7 +892,7 @@ class LibContentView extends React.Component { let tree = this.state.treeData.clone(); let node = tree.getNodeByPath(moveToDirentPath); let temporaryData = node.children.map(item => item.object); - this.getListDir(temporaryData, node.path); + this.updateMoveCopyTreeNode(temporaryData, node.path); } } this.moveDirent(direntPath, moveToDirentPath); @@ -922,7 +922,7 @@ class LibContentView extends React.Component { let tree = this.state.treeData.clone(); let node = tree.getNodeByPath(copyToDirentPath); let temporaryData = node.children.map(item => item.object); - this.getListDir(temporaryData, node.path); + this.updateMoveCopyTreeNode(temporaryData, node.path); } }