Skip to content

Commit

Permalink
revert changes button #759
Browse files Browse the repository at this point in the history
  • Loading branch information
janproch committed May 9, 2024
1 parent 5c24774 commit 4429b1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/web/src/datagrid/DataGridCore.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
id: 'dataGrid.revertAllChanges',
category: 'Data grid',
name: 'Revert all changes',
toolbarName: 'Revert all',
icon: 'icon undo',
testEnabled: () => getCurrentDataGrid()?.getGrider()?.containsChanges,
onClick: () => getCurrentDataGrid().revertAllChanges(),
});
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/tabs/CollectionDataTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
<ToolStripCommandButton command="dataGrid.refresh" hideDisabled />
<ToolStripCommandButton command="dataForm.refresh" hideDisabled />
<ToolStripCommandButton command="collectionTable.save" />
<ToolStripCommandButton command="dataGrid.revertAllChanges" hideDisabled />
<ToolStripCommandButton command="dataGrid.insertNewRow" hideDisabled />
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
<ToolStripCommandButton command="dataGrid.switchToJson" hideDisabled />
Expand Down
1 change: 1 addition & 0 deletions packages/web/src/tabs/TableDataTab.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@
<ToolStripCommandButton command="dataForm.goToLast" hideDisabled />

<ToolStripCommandButton command="tableData.save" />
<ToolStripCommandButton command="dataGrid.revertAllChanges" hideDisabled />
<ToolStripCommandButton command="dataGrid.insertNewRow" hideDisabled />
<ToolStripCommandButton command="dataGrid.deleteSelectedRows" hideDisabled />
<ToolStripCommandButton command="dataGrid.switchToForm" hideDisabled />
Expand Down

0 comments on commit 4429b1d

Please sign in to comment.