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

modify function name

This commit is contained in:
zxj96
2019-04-24 15:16:26 +08:00
parent 0c4dea01c5
commit 813a702ab5
2 changed files with 6 additions and 6 deletions

View File

@@ -403,7 +403,7 @@ class LibContentView extends React.Component {
if (!this.state.repoEncrypted && direntList.length) {
this.getThumbnails(repoID, path, this.state.direntList);
}
this.onSwitchPage();
this.resetShowLength();
}).catch(() => {
this.setState({
isDirentListLoading: false,
@@ -412,13 +412,13 @@ class LibContentView extends React.Component {
});
}
onPageScroll = () => {
onListContainerScroll = () => {
let itemsShowLength = this.state.itemsShowLength;
itemsShowLength += 100;
this.setState({itemsShowLength: itemsShowLength});
}
onSwitchPage = () => {
resetShowLength = () => {
this.setState({itemsShowLength: 100});
}
@@ -1467,7 +1467,7 @@ class LibContentView extends React.Component {
onDeleteRepoTag={this.onDeleteRepoTag}
onToolbarFileTagChanged={this.onToolbarFileTagChanged}
updateDetail={this.state.updateDetail}
onPageScroll={this.onPageScroll}
onListContainerScroll={this.onListContainerScroll}
/>
{this.state.pathExist && !this.state.isViewFile && (
<FileUploader