Remove copy/paste buttons.

This commit is contained in:
Sean Lip
2016-11-09 14:46:33 -08:00
parent 1e631965c1
commit bae7426ec6
2 changed files with 0 additions and 51 deletions

View File

@@ -162,41 +162,6 @@ blocklyApp.WorkspaceTreeComponent = ng.core
// Generate a list of action buttons.
var that = this;
this.actionButtonsInfo = [{
baseIdKey: 'copy',
translationIdForText: 'COPY_BLOCK',
action: function() {
that.clipboardService.copy(that.block);
that.notificationsService.setStatusMessage(
that.getBlockDescription() + ' ' + Blockly.Msg.COPIED_BLOCK_MSG);
},
isDisabled: function() {
return false;
}
}, {
baseIdKey: 'pasteBefore',
translationIdForText: 'PASTE_BEFORE',
action: function() {
that.treeService.pasteToConnection(
that.block, that.block.previousConnection);
},
isDisabled: function() {
return Boolean(
!that.block.previousConnection ||
!that.isCompatibleWithClipboard(that.block.previousConnection));
}
}, {
baseIdKey: 'pasteAfter',
translationIdForText: 'PASTE_AFTER',
action: function() {
that.treeService.pasteToConnection(
that.block, that.block.nextConnection);
},
isDisabled: function() {
return Boolean(
!that.block.nextConnection ||
!that.isCompatibleWithClipboard(that.block.nextConnection));
}
}, {
baseIdKey: 'markBefore',
translationIdForText: 'MARK_SPOT_BEFORE',
action: that.markSpotBefore_.bind(that),
@@ -237,15 +202,6 @@ blocklyApp.WorkspaceTreeComponent = ng.core
isDisabled: function() {
return false;
}
}, {
baseIdKey: 'paste',
translationIdForText: 'PASTE_INSIDE',
action: function(connection) {
that.treeService.pasteToConnection(that.block, connection);
},
isDisabled: function(connection) {
return !that.isCompatibleWithClipboard(connection);
}
}];
// Make a list of all the id keys.