Skip to content

Commit

Permalink
Default to 25 entries in the datatables view
Browse files Browse the repository at this point in the history
  • Loading branch information
audiodude committed Mar 17, 2024
1 parent a63244a commit 8ac4bea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion wp1-frontend/cypress/e2e/myLists.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ describe('the user selection list page', () => {
cy.visit('/#/selections/user');
cy.wait('@login');
cy.wait('@list');
cy.get('select').select('25');
});

it('successfully loads', () => {});
Expand Down
3 changes: 2 additions & 1 deletion wp1-frontend/src/components/MyLists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default {
{
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
}
},
);
var data = await response.json();
this.list = data.builders;
Expand All @@ -210,6 +210,7 @@ export default {
$('#list-table').DataTable({
columnDefs: [{ orderable: false, targets: [5, 7, 8] }],
order: [[2, 'desc']],
iDisplayLength: 25,
});
});
} else {
Expand Down

0 comments on commit 8ac4bea

Please sign in to comment.