diff --git a/app/pods/protected/strains/strain-form/component.js b/app/pods/protected/strains/strain-form/component.js index a53a469..8ac9027 100644 --- a/app/pods/protected/strains/strain-form/component.js +++ b/app/pods/protected/strains/strain-form/component.js @@ -9,5 +9,13 @@ export default Ember.Component.extend({ cancel: function() { this.sendAction('cancel'); }, - } + + isolatedFromDidChange: function(value) { + this.set('strain.isolatedFrom', value); + }, + + notesDidChange: function(value) { + this.set('strain.notes', value); + }, + }, }); diff --git a/app/pods/protected/strains/strain-form/template.hbs b/app/pods/protected/strains/strain-form/template.hbs index cf33026..109d037 100644 --- a/app/pods/protected/strains/strain-form/template.hbs +++ b/app/pods/protected/strains/strain-form/template.hbs @@ -25,7 +25,7 @@
- {{text-editor value=strain.isolatedFrom}} + {{text-editor value=strain.isolatedFrom update=(action "isolatedFromDidChange")}}
@@ -45,7 +45,7 @@
- {{text-editor value=strain.notes}} + {{text-editor value=strain.notes update=(action "notesDidChange")}}