Skip to content

Commit

Permalink
Remove move button
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Sep 29, 2017
1 parent 9852147 commit 940220f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -93,4 +81,4 @@ define(function() {
//let viewPanel = pnm.getPanel('views');
//viewPanel && updateTooltip(viewPanel.get('buttons'));
};
})
})

0 comments on commit 940220f

Please sign in to comment.