Refactor strains/new

This commit is contained in:
Matthew Dillon 2015-11-10 14:31:38 -07:00
parent 29c507af6b
commit fa5b741e35
11 changed files with 45 additions and 60 deletions

View file

@ -25,6 +25,10 @@ export default DS.Model.extend({
return Ember.String.htmlSafe(`${this.get('strainName')}${type}`);
}.property('strainName', 'typeStrain').readOnly(),
fullName: Ember.computed('species', 'strainName', function() {
return `${this.get('species.speciesName')} ${this.get('strainNameMU')}`;
}),
fullNameMU: function() {
return Ember.String.htmlSafe(`<em>${this.get('species.speciesName')}</em> ${this.get('strainNameMU')}`);
}.property('species', 'strainNameMU').readOnly(),