1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

handle delete item details panel bug

This commit is contained in:
Michael An
2019-04-18 13:39:42 +08:00
parent 77ff2d1757
commit fea12cbb3e
2 changed files with 14 additions and 3 deletions

View File

@@ -70,6 +70,7 @@ class LibContentView extends React.Component {
dirID: '', // for update dir list
errorMsg: '',
isDirentDetailShow: false,
updateDetail: false,
};
window.onpopstate = this.onpopstate;
@@ -491,6 +492,7 @@ class LibContentView extends React.Component {
let direntPaths = this.getSelectedDirentPaths();
let dirNames = this.getSelectedDirentNames();
this.setState({updateDetail: !this.state.updateDetail});
seafileAPI.deleteMutipleDirents(repoID, this.state.path, dirNames).then(res => {
direntPaths.forEach(direntPath => {
if (this.state.currentMode === 'column') {
@@ -1448,6 +1450,7 @@ class LibContentView extends React.Component {
showDirentDetail={this.showDirentDetail}
onDeleteRepoTag={this.onDeleteRepoTag}
onToolbarFileTagChanged={this.onToolbarFileTagChanged}
updateDetail={this.state.updateDetail}
/>
{this.state.pathExist && !this.state.isViewFile && (
<FileUploader