diff --git a/app/models/strain.js b/app/models/strain.js index a3621e9..7f69f45 100644 --- a/app/models/strain.js +++ b/app/models/strain.js @@ -2,22 +2,23 @@ import DS from 'ember-data'; import Ember from 'ember'; export default DS.Model.extend({ - measurements : DS.hasMany('measurements', { async: true }), - species : DS.belongsTo('species', { async: true }), - strainName : DS.attr('string'), - typeStrain : DS.attr('boolean'), - accessionNumbers : DS.attr('string'), - genbank : DS.attr('string'), - isolatedFrom : DS.attr('string'), - notes : DS.attr('string'), - createdAt : DS.attr('date'), - updatedAt : DS.attr('date'), - deletedAt : DS.attr('date'), - createdBy : DS.attr('number'), - updatedBy : DS.attr('number'), - deletedBy : DS.attr('number'), - totalMeasurements: DS.attr('number'), - sortOrder : DS.attr('number'), + measurements : DS.hasMany('measurements', { async: true }), + species : DS.belongsTo('species', { async: true }), + strainName : DS.attr('string'), + typeStrain : DS.attr('boolean'), + accessionNumbers : DS.attr('string'), + genbank : DS.attr('string'), + wholeGenomeSequence: DS.attr('string'), + isolatedFrom : DS.attr('string'), + notes : DS.attr('string'), + createdAt : DS.attr('date'), + updatedAt : DS.attr('date'), + deletedAt : DS.attr('date'), + createdBy : DS.attr('number'), + updatedBy : DS.attr('number'), + deletedBy : DS.attr('number'), + totalMeasurements : DS.attr('number'), + sortOrder : DS.attr('number'), strainNameMU: function() { let type = this.get('typeStrain') ? 'T' : ''; diff --git a/app/pods/components/strain-details/template.hbs b/app/pods/components/strain-details/template.hbs index f2d648f..9d6e9ca 100644 --- a/app/pods/components/strain-details/template.hbs +++ b/app/pods/components/strain-details/template.hbs @@ -5,7 +5,7 @@ {{#if isEditing}} {{input value=strain.strainName}} {{else}} - {{strain.strainName}} + {{strain.strainNameMU}} {{/if}} {{display-errors a=strain.errors.strainName}} @@ -43,7 +43,7 @@ {{! ROW 2 }} -