Skip to content

Commit

Permalink
Setting the pagination's page size to 10 as the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Feb 4, 2023
1 parent 8579c01 commit 8a4b877
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/InternalTransactionTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default {
rowsPerPage: 10,
rowsNumber: 0,
},
page_size_options: [10, 20, 50],
showDateAge: true,
};
},
Expand All @@ -95,7 +96,7 @@ export default {
handler(_pag) {
let pag = _pag;
let page = 1;
let size = this.pagination.rowsPerPage;
let size = this.page_size_options[0];
// we also allow to pass a single number as the page number
if (typeof pag === 'number') {
Expand Down Expand Up @@ -258,7 +259,7 @@ export default {
:row-key="row => row.hash"
:columns="columns"
:loading="loading"
:rows-per-page-options="[10, 20, 50]"
:rows-per-page-options="page_size_options"
flat
@request="onPaginationChange"
>
Expand Down

0 comments on commit 8a4b877

Please sign in to comment.