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