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

Modify variable name

This commit is contained in:
zxj96
2019-06-21 15:20:34 +08:00
parent 9a8da1ac19
commit 907eed4813

View File

@@ -71,7 +71,7 @@ class DirentListView extends React.Component {
isListDropTipShow: false,
};
this.enterChildAmount = 0;
this.dragEnterContainerAmount = 0;
this.isRepoOwner = props.currentRepoInfo.owner_email === username;
this.isAdmin = props.currentRepoInfo.is_admin;
this.repoEncrypted = props.currentRepoInfo.encrypted;
@@ -541,8 +541,8 @@ class DirentListView extends React.Component {
if (Utils.isIEBrower()) {
return false;
}
this.enterChildAmount++;
if (this.enterChildAmount !== 0) {
this.dragEnterContainerAmount++;
if (this.dragEnterContainerAmount !== 0) {
this.setState({isListDropTipShow: true});
}
}
@@ -559,8 +559,9 @@ class DirentListView extends React.Component {
if (Utils.isIEBrower()) {
return false;
}
this.enterChildAmount--;
if (this.enterChildAmount === 0) {
this.dragEnterContainerAmount--;
if (this.dragEnterContainerAmount === 0) {
// if (e.target.className === 'table-container table-drop-active') {
this.setState({isListDropTipShow: false});
}
}
@@ -570,7 +571,7 @@ class DirentListView extends React.Component {
return false;
}
e.persist();
this.enterChildAmount = 0;
this.dragEnterContainerAmount = 0;
this.setState({isListDropTipShow: false});
if (e.dataTransfer.files.length) { // uploaded files
return;