Minor measurements cleanup
This commit is contained in:
parent
0d840b4586
commit
97394d337e
3 changed files with 4 additions and 5 deletions
|
@ -3,11 +3,10 @@ import Ember from 'ember';
|
|||
export default Ember.Controller.extend({
|
||||
actions: {
|
||||
search: function() {
|
||||
let search = {
|
||||
this.store.find('measurement', {
|
||||
strain: this.get('selectedStrains'),
|
||||
characteristic: this.get('selectedCharacteristics'),
|
||||
};
|
||||
this.store.find('measurement', search).then((measurements)=>{
|
||||
}).then((measurements)=>{
|
||||
this.set('measurements', measurements);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
{ model: 'characteristics', id: 'id', text: 'characteristicName' },
|
||||
];
|
||||
|
||||
selects.forEach((item, index, enumerable) => {
|
||||
selects.forEach((item /*, index, enumerable*/) => {
|
||||
models[item.model] = models[item.model].sortBy(item.text);
|
||||
let temp = models[item.model].map((data) => {
|
||||
return Ember.Object.create({
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<form>
|
||||
<ul>
|
||||
<li>
|
||||
<label>Species</label>
|
||||
<label>Strains</label>
|
||||
{{
|
||||
select-2
|
||||
multiple=true
|
||||
|
|
Reference in a new issue