strain.strainNameMU to component

Part of #55
This commit is contained in:
Matthew Dillon 2015-11-13 14:24:26 -07:00
parent 20a6707144
commit 81b6b9aee4
7 changed files with 6 additions and 11 deletions

View file

@ -22,12 +22,6 @@ export default Model.extend({
sortOrder : attr('number'),
canEdit : attr('boolean'),
// TODO: move this to component/helper
strainNameMU: function() {
let type = this.get('typeStrain') ? '<sup>T</sup>' : '';
return Ember.String.htmlSafe(`${this.get('strainName')}${type}`);
}.property('strainName', 'typeStrain').readOnly(),
// TODO: move this to component/helper
fullName: Ember.computed('species', 'strainName', function() {
return `${this.get('species.speciesName')} ${this.get('strainNameMU')}`;