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
2015-11-02 13:22:56 -07:00

20 lines
477 B
JavaScript

import Ember from 'ember';
const { Component, inject: { service }} = Ember;
export default Component.extend({
currentUser: service('session-account'),
metaData: null,
species: 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'),
});