Skip to content

Commit d47def8

Browse files
committed
Set pagination to 1000
1 parent 13651a7 commit d47def8

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

web/src/BaseListPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BaseListPage extends React.Component {
2424
data: [],
2525
pagination: {
2626
current: 1,
27-
pageSize: 10,
27+
pageSize: 1000,
2828
},
2929
loading: false,
3030
isAuthorized: true,

web/src/CertListPage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CertListPage extends BaseListPage {
3232
pagination: {
3333
...this.state.pagination,
3434
current: 1,
35-
pageSize: 10,
35+
pageSize: 1000,
3636
},
3737
});
3838
this.fetch({pagination: this.state.pagination});
@@ -295,7 +295,7 @@ class CertListPage extends BaseListPage {
295295
const field = params.searchedColumn, value = params.searchText;
296296
const sortField = params.sortField, sortOrder = params.sortOrder;
297297
if (!params.pagination) {
298-
params.pagination = {current: 1, pageSize: 10};
298+
params.pagination = {current: 1, pageSize: 100};
299299
}
300300
this.setState({loading: true});
301301
CertBackend.getCerts(this.props.account.name, params.pagination.current, params.pagination.pageSize, field, value, sortField, sortOrder)

web/src/SiteListPage.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@ import i18next from "i18next";
2222
import BaseListPage from "./BaseListPage";
2323

2424
class SiteListPage extends BaseListPage {
25+
constructor(props) {
26+
super(props);
27+
}
2528

2629
UNSAFE_componentWillMount() {
2730
this.setState({
2831
pagination: {
2932
...this.state.pagination,
3033
current: 1,
31-
pageSize: 10,
34+
pageSize: 1000,
3235
},
3336
});
3437
this.fetch({pagination: this.state.pagination});

0 commit comments

Comments
 (0)