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:
@@ -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
|
||||
|
Reference in New Issue
Block a user