Refactor strains/new
This commit is contained in:
parent
29c507af6b
commit
fa5b741e35
11 changed files with 45 additions and 60 deletions
|
@ -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(),
|
||||
|
|
Reference in a new issue