mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 23:13:57 +00:00
revert changes button #759
This commit is contained in:
@@ -38,6 +38,8 @@
|
|||||||
id: 'dataGrid.revertAllChanges',
|
id: 'dataGrid.revertAllChanges',
|
||||||
category: 'Data grid',
|
category: 'Data grid',
|
||||||
name: 'Revert all changes',
|
name: 'Revert all changes',
|
||||||
|
toolbarName: 'Revert all',
|
||||||
|
icon: 'icon undo',
|
||||||
testEnabled: () => getCurrentDataGrid()?.getGrider()?.containsChanges,
|
testEnabled: () => getCurrentDataGrid()?.getGrider()?.containsChanges,
|
||||||
onClick: () => getCurrentDataGrid().revertAllChanges(),
|
onClick: () => getCurrentDataGrid().revertAllChanges(),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -193,6 +193,7 @@
|
|||||||
<ToolStripCommandButton command="dataGrid.refresh" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.refresh" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataForm.refresh" hideDisabled />
|
<ToolStripCommandButton command="dataForm.refresh" hideDisabled />
|
||||||
<ToolStripCommandButton command="collectionTable.save" />
|
<ToolStripCommandButton command="collectionTable.save" />
|
||||||
|
<ToolStripCommandButton command="dataGrid.revertAllChanges" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataGrid.insertNewRow" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.insertNewRow" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataGrid.switchToJson" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.switchToJson" hideDisabled />
|
||||||
|
|||||||
@@ -277,6 +277,7 @@
|
|||||||
<ToolStripCommandButton command="dataForm.goToLast" hideDisabled />
|
<ToolStripCommandButton command="dataForm.goToLast" hideDisabled />
|
||||||
|
|
||||||
<ToolStripCommandButton command="tableData.save" />
|
<ToolStripCommandButton command="tableData.save" />
|
||||||
|
<ToolStripCommandButton command="dataGrid.revertAllChanges" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataGrid.insertNewRow" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.insertNewRow" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
|
||||||
<ToolStripCommandButton command="dataGrid.switchToForm" hideDisabled />
|
<ToolStripCommandButton command="dataGrid.switchToForm" hideDisabled />
|
||||||
|
|||||||
Reference in New Issue
Block a user