From 0779c959d7e8c7ced12e7f1df92b38e2c9317844 Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Tue, 20 Sep 2016 17:44:18 -0700 Subject: [PATCH] Move 'move to marked spot' button to the top of the block options list. --- accessible/workspace-tree.component.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/accessible/workspace-tree.component.js b/accessible/workspace-tree.component.js index d6c8fdb23..33e940e04 100644 --- a/accessible/workspace-tree.component.js +++ b/accessible/workspace-tree.component.js @@ -184,6 +184,14 @@ blocklyApp.WorkspaceTreeComponent = ng.core // Generate a list of action buttons. this.actionButtonsInfo = [{ + baseIdKey: 'moveToMarkedSpot', + translationIdForText: 'MOVE_TO_MARKED_SPOT', + action: that.moveToMarkedSpot_.bind(that), + isDisabled: function() { + return !that.clipboardService.isMovableToMarkedConnection( + that.block); + } + }, { baseIdKey: 'markBefore', translationIdForText: 'MARK_SPOT_BEFORE', action: that.markSpotBefore_.bind(that), @@ -197,14 +205,6 @@ blocklyApp.WorkspaceTreeComponent = ng.core isDisabled: function() { return !that.block.nextConnection; } - }, { - baseIdKey: 'moveToMarkedSpot', - translationIdForText: 'MOVE_TO_MARKED_SPOT', - action: that.moveToMarkedSpot_.bind(that), - isDisabled: function() { - return !that.clipboardService.isMovableToMarkedConnection( - that.block); - } }, { baseIdKey: 'delete', translationIdForText: 'DELETE',