This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/protected/species/index/species-table/component.js
Matthew Dillon a52710f090 New index
2015-10-29 16:52:20 -07:00

17 lines
429 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
currentUser: Ember.inject.service('session-account'),
metaData: null,
setupMetaDataOnInit: Ember.on('init', function() {
this.get('currentUser.account').then((user) => {
this.set('metaData', user.get('metaData'));
});
}),
sortParams: ['speciesName', 'strainCount'],
sortedSpecies: Ember.computed.sort('species', 'sortParams'),
});