Move 'move to marked spot' button to the top of the block options list.

This commit is contained in:
Sean Lip
2016-09-20 17:44:18 -07:00
parent 270ed961bf
commit 0779c959d7

View File

@@ -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',