mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Move 'move to marked spot' button to the top of the block options list.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user