From 4bde4817ddc824f9c6c14c3e2870686e0e783e46 Mon Sep 17 00:00:00 2001
From: john <johnbarlas39@gmail.com>
Date: Sun, 19 Mar 2017 18:45:57 +0200
Subject: [PATCH] fix typos

---
 app/components/SimpleEditor/elements/note/EditNoteTool.js | 4 ++--
 app/components/SimpleEditor/elements/note/NoteTool.js     | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app/components/SimpleEditor/elements/note/EditNoteTool.js b/app/components/SimpleEditor/elements/note/EditNoteTool.js
index 5f74ba6..34a4777 100644
--- a/app/components/SimpleEditor/elements/note/EditNoteTool.js
+++ b/app/components/SimpleEditor/elements/note/EditNoteTool.js
@@ -26,7 +26,7 @@ class EditNoteTool extends Tool {
   }
 
   didMount () {
-    this.context.editorSession.onUpdate('', this.diabelTools, this)
+    this.context.editorSession.onUpdate('', this.disableTools, this)
   }
 
   _initMiniEditor () {
@@ -50,7 +50,7 @@ class EditNoteTool extends Tool {
     return editorSession
   }
 
-  diabelTools () {
+  disableTools () {
     const selected = this.getSelection()
     if (!selected.node) return
     const commandStates = this.context.commandManager.commandStates
diff --git a/app/components/SimpleEditor/elements/note/NoteTool.js b/app/components/SimpleEditor/elements/note/NoteTool.js
index 99ad238..b5d7127 100644
--- a/app/components/SimpleEditor/elements/note/NoteTool.js
+++ b/app/components/SimpleEditor/elements/note/NoteTool.js
@@ -3,8 +3,11 @@ import { AnnotationTool } from 'substance'
 class NoteTool extends AnnotationTool {
   renderButton ($$) {
     const el = super.renderButton($$)
+
+    // TODO -- either delete or re-introduce
     // const readOnly = this.isSurfaceReadOnly()
     // if (readOnly === true) el.attr('disabled', 'true')
+
     return el
   }
 
-- 
GitLab