1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 11:51:27 +00:00

[system admin] all libraries: added 'per page' for paginator (#4387)

This commit is contained in:
llj
2019-12-31 18:26:02 +08:00
committed by Daniel Pan
parent 1c76000843
commit d562657346
2 changed files with 14 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ class Content extends Component {
}
render() {
const { loading, errorMsg, items, pageInfo } = this.props;
const { loading, errorMsg, items, pageInfo, curPerPage } = this.props;
if (loading) {
return <Loading />;
} else if (errorMsg) {
@@ -87,7 +87,9 @@ class Content extends Component {
gotoNextPage={this.getNextPageList}
currentPage={pageInfo.current_page}
hasNextPage={pageInfo.has_next_page}
canResetPerPage={false}
canResetPerPage={true}
curPerPage={curPerPage}
resetPerPage={this.props.resetPerPage}
/>
}
</Fragment>