+ There are no blocks in the workspace. + +
@@ -50,14 +55,21 @@ blocklyApp.WorkspaceComponent = ng.core.Component({ pipes: [blocklyApp.TranslatePipe] }) .Class({ - constructor: [blocklyApp.TreeService, function(_treeService) { - this.treeService = _treeService; - this.workspace = blocklyApp.workspace; - }], + constructor: [ + blocklyApp.TreeService, blocklyApp.ToolboxModalService, + function(_treeService, _toolboxModalService) { + this.treeService = _treeService; + this.toolboxModalService = _toolboxModalService; + this.workspace = blocklyApp.workspace; + } + ], getActiveDescId: function(treeId) { return this.treeService.getActiveDescId(treeId); }, onKeypress: function(e, tree) { this.treeService.onKeypress(e, tree); + }, + showToolboxModalForCreateNewGroup: function() { + this.toolboxModalService.showToolboxModalForCreateNewGroup(); } }); diff --git a/demos/accessible/index.html b/demos/accessible/index.html index 4e7205fda..6a3294bf4 100644 --- a/demos/accessible/index.html +++ b/demos/accessible/index.html @@ -21,11 +21,11 @@ - +