11 lines
308 B
JavaScript
11 lines
308 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Controller.extend({
|
|
sortParams: ['speciesName', 'strainCount'],
|
|
sortedSpecies: Ember.computed.sort('model', 'sortParams'),
|
|
|
|
metaData: function() {
|
|
return Ember.copy(this.store.metadataFor('species'));
|
|
}.property('model.isLoaded').readOnly(),
|
|
|
|
});
|