From eda648c6cb8ef94cb92cfcdb49b928c8e24723ed Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Thu, 14 Oct 2021 19:26:05 +0300
Subject: [PATCH] rename tool

---
 editors/demo/src/HHMI/config/config.js              |  6 +++---
 wax-prosemirror-services/index.js                   |  2 +-
 .../QuestionsToolGroupService/Questions.js          | 13 -------------
 .../QuestionsToolGroupService.js                    | 10 ----------
 4 files changed, 4 insertions(+), 27 deletions(-)
 delete mode 100644 wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/Questions.js
 delete mode 100644 wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/QuestionsToolGroupService.js

diff --git a/editors/demo/src/HHMI/config/config.js b/editors/demo/src/HHMI/config/config.js
index 942f33dff..6bccceac3 100644
--- a/editors/demo/src/HHMI/config/config.js
+++ b/editors/demo/src/HHMI/config/config.js
@@ -21,7 +21,7 @@ import {
   EditorInfoToolGroupServices,
   BottomInfoService,
   MultipleChoiceQuestionService,
-  QuestionsToolGroupService,
+  MultipleChoiceToolGroupService,
 } from 'wax-prosemirror-services';
 
 import { DefaultSchema } from 'wax-prosemirror-utilities';
@@ -51,7 +51,7 @@ export default {
         'Lists',
         'Images',
         'Tables',
-        'Questions',
+        'MultipleChoice',
         'FillTheGap',
         'FullScreen',
       ],
@@ -72,7 +72,7 @@ export default {
     new FillTheGapQuestionService(),
     new FillTheGapToolGroupService(),
     new MultipleChoiceQuestionService(),
-    new QuestionsToolGroupService(),
+    new MultipleChoiceToolGroupService(),
     new ListsService(),
     new LinkService(),
     new InlineAnnotationsService(),
diff --git a/wax-prosemirror-services/index.js b/wax-prosemirror-services/index.js
index 0ea0ee27c..0e2ade71e 100644
--- a/wax-prosemirror-services/index.js
+++ b/wax-prosemirror-services/index.js
@@ -70,4 +70,4 @@ export { default as TrackOptionsToolGroupService } from './src/WaxToolGroups/Tra
 export { default as TrackCommentOptionsToolGroupService } from './src/WaxToolGroups/TrackCommentOptionsToolGroupService/TrackCommentOptionsToolGroupService';
 export { default as CustomTagInlineToolGroupService } from './src/WaxToolGroups/CustomTagToolGroupService/CustomTagInlineToolGroupService/CustomTagInlineToolGroupService';
 export { default as CustomTagBlockToolGroupService } from './src/WaxToolGroups/CustomTagToolGroupService/CustomTagBlockToolGroupService/CustomTagBlockToolGroupService';
-export { default as QuestionsToolGroupService } from './src/WaxToolGroups/QuestionsToolGroupService/QuestionsToolGroupService';
+export { default as MultipleChoiceToolGroupService } from './src/WaxToolGroups/MultipleChoiceToolGroupService/MultipleChoiceToolGroupService';
diff --git a/wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/Questions.js b/wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/Questions.js
deleted file mode 100644
index 8b9b9eada..000000000
--- a/wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/Questions.js
+++ /dev/null
@@ -1,13 +0,0 @@
-import { injectable, inject } from 'inversify';
-import ToolGroup from '../../lib/ToolGroup';
-
-@injectable()
-class Questions extends ToolGroup {
-  tools = [];
-  constructor(@inject('MultipleChoiceQuestion') multipleChoiceQuestion) {
-    super();
-    this.tools = [multipleChoiceQuestion];
-  }
-}
-
-export default Questions;
diff --git a/wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/QuestionsToolGroupService.js b/wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/QuestionsToolGroupService.js
deleted file mode 100644
index f5b68c449..000000000
--- a/wax-prosemirror-services/src/WaxToolGroups/QuestionsToolGroupService/QuestionsToolGroupService.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import Service from '../../Service';
-import Questions from './Questions';
-
-class QuestionsToolGroupService extends Service {
-  register() {
-    this.container.bind('Questions').to(Questions);
-  }
-}
-
-export default QuestionsToolGroupService;
-- 
GitLab