From 8ac4beadfaedb3437a8edbbed6fc13da32536258 Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Sun, 17 Mar 2024 05:51:44 -0700 Subject: [PATCH] Default to 25 entries in the datatables view --- wp1-frontend/cypress/e2e/myLists.cy.js | 1 - wp1-frontend/src/components/MyLists.vue | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp1-frontend/cypress/e2e/myLists.cy.js b/wp1-frontend/cypress/e2e/myLists.cy.js index 66de359c..ca8e47ea 100644 --- a/wp1-frontend/cypress/e2e/myLists.cy.js +++ b/wp1-frontend/cypress/e2e/myLists.cy.js @@ -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', () => {}); diff --git a/wp1-frontend/src/components/MyLists.vue b/wp1-frontend/src/components/MyLists.vue index 98a26ce0..98402b37 100644 --- a/wp1-frontend/src/components/MyLists.vue +++ b/wp1-frontend/src/components/MyLists.vue @@ -201,7 +201,7 @@ export default { { headers: { 'Content-Type': 'application/json' }, credentials: 'include', - } + }, ); var data = await response.json(); this.list = data.builders; @@ -210,6 +210,7 @@ export default { $('#list-table').DataTable({ columnDefs: [{ orderable: false, targets: [5, 7, 8] }], order: [[2, 'desc']], + iDisplayLength: 25, }); }); } else {