parent
20a6707144
commit
81b6b9aee4
7 changed files with 6 additions and 11 deletions
|
@ -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')}`;
|
||||
|
|
Reference in a new issue