From 940220fc0958e1899247fbc8fea6f0dc2b06ec46 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 30 Sep 2017 01:10:32 +0200 Subject: [PATCH] Remove move button --- src/buttons.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/buttons.js b/src/buttons.js index c346df7..8b63ec0 100644 --- a/src/buttons.js +++ b/src/buttons.js @@ -32,27 +32,15 @@ define(function() { attrs[tltPosAttr] = 'bottom'; btn.set('attributes', attrs); }); - // Remove preview and code button + // Remove preview let prvBtn = pnm.addButton('options', 'preview'); prvBtn && cmdBtns.remove(prvBtn); - //let codeBtn = pnm.addButton('options', 'export-template'); - //codeBtn && cmdBtns.remove(codeBtn); } // Clean commands panel let cmdPanel = pnm.getPanel('commands'); if(cmdPanel){ let cmdBtns = cmdPanel.get('buttons'); cmdBtns.reset(); - cmdBtns.add({ - id: 'move-comp', - command: 'move-comp', - className: 'fa fa-arrows', - attributes: { - [tltAttr]: opt.cmdBtnMoveLabel, - [tltPosAttr]: 'bottom' - }, - stopDefaultCommand: 1, - }); cmdBtns.add([{ id: 'undo', className: 'fa fa-undo', @@ -93,4 +81,4 @@ define(function() { //let viewPanel = pnm.getPanel('views'); //viewPanel && updateTooltip(viewPanel.get('buttons')); }; -}) \ No newline at end of file +})