Merge branch 'master' into clostridium

* master:
  Fix up full name, again
  Force sort order for compare
This commit is contained in:
Matthew Dillon 2015-11-17 13:19:39 -07:00
commit 7c503876ac
6 changed files with 13 additions and 12 deletions

View file

@ -1,6 +1,6 @@
import Ember from 'ember';
const { Component } = Ember;
const { Component, computed: { sort } } = Ember;
export default Component.extend({
characteristics: null,
@ -10,6 +10,12 @@ export default Component.extend({
"update-strains": null,
"update-characteristics": null,
charSortParams: ['characteristicTypeName', 'sortOrder', 'characteristicName'],
sortedCharacteristics: sort('characteristics', 'charSortParams'),
strainSortParams: ['sortOrder'],
sortedStrains: sort('strains', 'sortParams'),
selectedStrains: [],
selectedCharacteristics: [],

View file

@ -6,7 +6,7 @@
<label>Strains</label>
{{
x-select
options=strains
options=sortedStrains
nameAttr='fullNameMU'
multiple=true
selected=selectedStrains
@ -26,7 +26,7 @@
<label>Characteristics</label>
{{
x-select
options=characteristics
options=sortedCharacteristics
nameAttr='characteristicName'
multiple=true
selected=selectedCharacteristics

View file

@ -6,7 +6,7 @@ const { Component, computed: { sort } } = Ember;
export default Component.extend(SetupMetaData, {
strains: null,
sortParams: ['fullName'],
sortParams: ['sortOrder'],
sortedStrains: sort('strains', 'sortParams'),
});

View file

@ -14,7 +14,7 @@
<tr>
<td>
{{#link-to 'protected.strains.show' strain classBinding="strain.typeStrain:type-strain"}}
{{full-strain-name strain=strain}}
{{strain.fullNameMU}}
{{/link-to}}
</td>
<td>