From a027ec8573f42e3cfff683ebeb9eaacc6bdd0711 Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Wed, 16 Nov 2016 16:47:26 -0800 Subject: [PATCH] Move away from using a common modal service, since the block options and the toolbox modals are going to end up behaving fairly differently. --- accessible/app.component.js | 2 +- accessible/block-options-modal.component.js | 22 ++++++++----------- ...vice.js => block-options-modal.service.js} | 13 +++++------ accessible/toolbox.component.js | 8 ++----- accessible/tree.service.js | 16 +++++++++----- accessible/workspace-tree.component.js | 6 ++--- demos/accessible/index.html | 2 +- 7 files changed, 30 insertions(+), 39 deletions(-) rename accessible/{modal.service.js => block-options-modal.service.js} (76%) diff --git a/accessible/app.component.js b/accessible/app.component.js index 89d7fbe58..3a79c328c 100644 --- a/accessible/app.component.js +++ b/accessible/app.component.js @@ -55,7 +55,7 @@ blocklyApp.AppView = ng.core.Component({ providers: [ blocklyApp.ClipboardService, blocklyApp.NotificationsService, blocklyApp.TreeService, blocklyApp.UtilsService, - blocklyApp.AudioService, blocklyApp.ModalService, + blocklyApp.AudioService, blocklyApp.BlockOptionsModalService, blocklyApp.KeyboardInputService] }) .Class({ diff --git a/accessible/block-options-modal.component.js b/accessible/block-options-modal.component.js index 9ae2baabc..7bbeb946d 100644 --- a/accessible/block-options-modal.component.js +++ b/accessible/block-options-modal.component.js @@ -26,12 +26,12 @@ blocklyApp.BlockOptionsModalComponent = ng.core.Component({ selector: 'blockly-block-options-modal', template: ` -