Fix up full name, again

This commit is contained in:
Matthew Dillon 2015-11-17 13:16:00 -07:00
parent c350dd6fcc
commit 9d57e1bbfb
4 changed files with 4 additions and 9 deletions

View file

@ -23,12 +23,8 @@ export default Model.extend({
sortOrder : attr('number'),
canEdit : attr('boolean'),
// Used internally for sorting
fullName: computed('species', 'strainName', function() {
return `${this.get('species.speciesName')} ${this.get('strainNameMU')}`;
}),
fullNameMU: computed('species', 'strainName', function() {
return htmlSafe(`<em>${this.get('species.speciesName')}</em> ${this.get('strainName')}`);
const type = this.get('typeStrain') ? '<sup>T</sup>' : '';
return htmlSafe(`<em>${this.get('species.speciesName')}</em> ${this.get('strainName')}${type}`);
}),
});