WIP
This commit is contained in:
parent
48cd1f4f39
commit
fbfbdf19d1
8 changed files with 54 additions and 37 deletions
|
@ -14,6 +14,7 @@ export default Component.extend(SetupMetaData, {
|
|||
"on-save": null,
|
||||
"on-cancel": null,
|
||||
"on-update": null,
|
||||
"add-characteristic": null,
|
||||
|
||||
// Property mapping
|
||||
propertiesList: ['strainName', 'typeStrain', 'species', 'isolatedFrom', 'accessionNumbers', 'genbank', 'wholeGenomeSequence', 'notes'],
|
||||
|
@ -54,6 +55,10 @@ export default Component.extend(SetupMetaData, {
|
|||
return this.attrs['on-cancel']();
|
||||
},
|
||||
|
||||
addCharacteristic: function() {
|
||||
return this.attrs['add-characteristic']();
|
||||
},
|
||||
|
||||
strainNameDidChange: function(value) {
|
||||
this.updateField('strainName', value);
|
||||
},
|
||||
|
|
|
@ -52,9 +52,10 @@
|
|||
<div>
|
||||
{{
|
||||
protected/strains/measurements-table
|
||||
model=strain
|
||||
strain=strain
|
||||
add-characteristic=(action "addCharacteristic")
|
||||
canEdit=strain.canEdit
|
||||
canAdd=canAdd
|
||||
canAdd=metaData.canAdd
|
||||
}}
|
||||
</div>
|
||||
<br>
|
||||
|
|
Reference in a new issue