From 467a8d8b6490fc63f136064e99a944345a789b46 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 3 Mar 2018 16:56:44 -0700 Subject: [PATCH] MAINT: Grab all species records in lookups (#78) --- app/routes/collections/create.js | 2 +- app/routes/collections/detail/edit.js | 2 +- app/routes/collections/index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/routes/collections/create.js b/app/routes/collections/create.js index a0d9830..885e042 100644 --- a/app/routes/collections/create.js +++ b/app/routes/collections/create.js @@ -10,7 +10,7 @@ export default Route.extend({ studyLocationOptions: store.findAll('study-location'), collectionTypeOptions: store.findAll('collection-type'), collectionMethodOptions: store.findAll('collection-method'), - speciesOptions: store.findAll('species'), + speciesOptions: store.query('species', { page_size: 500 }), adfgPermitOptions: store.findAll('adfg-permit'), sexOptions: store.findAll('sex'), }); diff --git a/app/routes/collections/detail/edit.js b/app/routes/collections/detail/edit.js index 7cd72a8..fdf00c9 100644 --- a/app/routes/collections/detail/edit.js +++ b/app/routes/collections/detail/edit.js @@ -11,7 +11,7 @@ export default Route.extend({ studyLocationOptions: store.findAll('study-location'), collectionTypeOptions: store.findAll('collection-type'), collectionMethodOptions: store.findAll('collection-method'), - speciesOptions: store.findAll('species'), + speciesOptions: store.query('species', { page_size: 500 }), adfgPermitOptions: store.findAll('adfg-permit'), sexOptions: store.findAll('sex'), }); diff --git a/app/routes/collections/index.js b/app/routes/collections/index.js index 475eac3..44c45b5 100644 --- a/app/routes/collections/index.js +++ b/app/routes/collections/index.js @@ -32,7 +32,7 @@ export default Route.extend({ studyLocationOptions: store.findAll('study-location'), collectionMethodOptions: store.findAll('collection-method'), adfgPermitOptions: store.findAll('adfg-permit'), - speciesOptions: store.findAll('species'), + speciesOptions: store.query('species', { page_size: 500 }), model: store.query('collection', Object.assign(params, opts)), }); },