WIP
This commit is contained in:
parent
48cd1f4f39
commit
fbfbdf19d1
8 changed files with 54 additions and 37 deletions
|
@ -7,4 +7,12 @@ export default Controller.extend(SaveModel, {
|
|||
// Required for SaveModel mixin
|
||||
fallbackRouteSave: 'protected.strains.show',
|
||||
fallbackRouteCancel: 'protected.strains.show',
|
||||
|
||||
actions: {
|
||||
addCharacteristic: function() {
|
||||
return this.store.createRecord('measurement', {
|
||||
characteristic: this.store.createRecord('characteristic', { sortOrder: -999 }),
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
protected/strains/strain-form
|
||||
strain=model
|
||||
speciesList=speciesList
|
||||
add-characteristic=(action "addCharacteristic")
|
||||
on-save=(action "save")
|
||||
on-cancel=(action "cancel")
|
||||
}}
|
||||
|
|
Reference in a new issue