mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* move split cell icon before delete icon
This commit is contained in:
@@ -59,10 +59,6 @@ export class CellToolbarComponent {
|
|||||||
this._actionBar = new Taskbar(taskbar);
|
this._actionBar = new Taskbar(taskbar);
|
||||||
this._actionBar.context = context;
|
this._actionBar.context = context;
|
||||||
|
|
||||||
let splitCellButton = this.instantiationService.createInstance(SplitCellAction, 'notebook.SplitCellAtCursor', this.buttonSplitCell, 'masked-icon icon-split-cell');
|
|
||||||
splitCellButton.setListener(context);
|
|
||||||
splitCellButton.enabled = this.cellModel.cellType !== 'markdown';
|
|
||||||
|
|
||||||
let addCellsButton = this.instantiationService.createInstance(AddCellAction, 'notebook.AddCodeCell', localize('codeCellsPreview', "Add cell"), 'masked-pseudo code');
|
let addCellsButton = this.instantiationService.createInstance(AddCellAction, 'notebook.AddCodeCell', localize('codeCellsPreview', "Add cell"), 'masked-pseudo code');
|
||||||
|
|
||||||
let addCodeCellButton = this.instantiationService.createInstance(AddCellAction, 'notebook.AddCodeCell', localize('codePreview', "Code cell"), 'masked-pseudo code');
|
let addCodeCellButton = this.instantiationService.createInstance(AddCellAction, 'notebook.AddCodeCell', localize('codePreview', "Code cell"), 'masked-pseudo code');
|
||||||
@@ -74,6 +70,10 @@ export class CellToolbarComponent {
|
|||||||
let moveCellDownButton = this.instantiationService.createInstance(MoveCellAction, 'notebook.MoveCellDown', 'masked-icon move-down', this.buttonMoveDown);
|
let moveCellDownButton = this.instantiationService.createInstance(MoveCellAction, 'notebook.MoveCellDown', 'masked-icon move-down', this.buttonMoveDown);
|
||||||
let moveCellUpButton = this.instantiationService.createInstance(MoveCellAction, 'notebook.MoveCellUp', 'masked-icon move-up', this.buttonMoveUp);
|
let moveCellUpButton = this.instantiationService.createInstance(MoveCellAction, 'notebook.MoveCellUp', 'masked-icon move-up', this.buttonMoveUp);
|
||||||
|
|
||||||
|
let splitCellButton = this.instantiationService.createInstance(SplitCellAction, 'notebook.SplitCellAtCursor', this.buttonSplitCell, 'masked-icon icon-split-cell');
|
||||||
|
splitCellButton.setListener(context);
|
||||||
|
splitCellButton.enabled = this.cellModel.cellType !== 'markdown';
|
||||||
|
|
||||||
let deleteButton = this.instantiationService.createInstance(DeleteCellAction, 'notebook.DeleteCell', 'masked-icon delete', this.buttonDelete);
|
let deleteButton = this.instantiationService.createInstance(DeleteCellAction, 'notebook.DeleteCell', 'masked-icon delete', this.buttonDelete);
|
||||||
|
|
||||||
let moreActionsContainer = DOM.$('li.action-item');
|
let moreActionsContainer = DOM.$('li.action-item');
|
||||||
@@ -106,10 +106,10 @@ export class CellToolbarComponent {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
taskbarContent.push(
|
taskbarContent.push(
|
||||||
{ action: splitCellButton },
|
|
||||||
{ element: addCellDropdownContainer },
|
{ element: addCellDropdownContainer },
|
||||||
{ action: moveCellDownButton },
|
{ action: moveCellDownButton },
|
||||||
{ action: moveCellUpButton },
|
{ action: moveCellUpButton },
|
||||||
|
{ action: splitCellButton },
|
||||||
{ action: deleteButton },
|
{ action: deleteButton },
|
||||||
{ element: moreActionsContainer });
|
{ element: moreActionsContainer });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user