From c672a245aa3987d7a2382d35be329e54bb2d9e47 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 4 Nov 2015 13:36:09 -0700 Subject: [PATCH] Temporary fix for quill editor use in strains edit --- app/pods/protected/strains/strain-form/component.js | 10 +++++++++- app/pods/protected/strains/strain-form/template.hbs | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) 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")}}