Stop loading chars in measurements-table

This commit is contained in:
Matthew Dillon 2015-11-10 15:49:55 -07:00
parent fbfbdf19d1
commit ba15af411e
8 changed files with 9 additions and 10 deletions

View file

@ -12,6 +12,7 @@ export default Route.extend(ElevatedAccess, {
return Ember.RSVP.hash({
strain: this.store.findRecord('strain', params.strain_id),
species: this.store.findAll('species'), // Need for dropdown
characteristics: this.store.findAll('characteristic'), // Need for dropdown
});
},
@ -26,6 +27,7 @@ export default Route.extend(ElevatedAccess, {
setupController: function(controller, models) {
controller.set('model', models.strain);
controller.set('speciesList', models.species);
controller.set('allCharacteristics', models.characteristics);
},
actions: {

View file

@ -3,6 +3,7 @@
strain=model
speciesList=speciesList
add-characteristic=(action "addCharacteristic")
allCharacteristics=allCharacteristics
on-save=(action "save")
on-cancel=(action "cancel")
}}