diff --git a/app/pods/components/add-button/component.js b/app/pods/components/add-button/component.js deleted file mode 100644 index 8075297..0000000 --- a/app/pods/components/add-button/component.js +++ /dev/null @@ -1,9 +0,0 @@ -import Ember from 'ember'; -import userCanAdd from '../../../utils/user-can-add'; - -export default Ember.Component.extend({ - canAdd: function() { - let user_role = this.get('session.currentUser.role'); - return userCanAdd(user_role); - }.property('session.currentUser.role').readOnly(), -}); diff --git a/app/pods/species/index/controller.js b/app/pods/species/index/controller.js index a28a11f..82a022e 100644 --- a/app/pods/species/index/controller.js +++ b/app/pods/species/index/controller.js @@ -3,4 +3,9 @@ import Ember from 'ember'; export default Ember.Controller.extend({ sortParams: ['speciesName', 'strainCount'], sortedSpecies: Ember.computed.sort('species', 'sortParams'), + + metaData: function() { + return this.store.metadataFor('species'); + }.property('model.isLoaded').readOnly(), + }); diff --git a/app/pods/species/index/template.hbs b/app/pods/species/index/template.hbs index b02064a..6fc2993 100644 --- a/app/pods/species/index/template.hbs +++ b/app/pods/species/index/template.hbs @@ -1,7 +1,7 @@