mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
data form - reload
This commit is contained in:
@@ -12,9 +12,20 @@
|
||||
// onClick: () => getCurrentDataForm().save(),
|
||||
// });
|
||||
|
||||
registerCommand({
|
||||
id: 'dataForm.refresh',
|
||||
category: 'Data form',
|
||||
name: 'Refresh',
|
||||
keyText: 'F5',
|
||||
toolbar: true,
|
||||
icon: 'icon reload',
|
||||
testEnabled: () => getCurrentDataForm() != null,
|
||||
onClick: () => getCurrentDataForm().refresh(),
|
||||
});
|
||||
|
||||
registerCommand({
|
||||
id: 'dataForm.copyToClipboard',
|
||||
category: 'Data grid',
|
||||
category: 'Data form',
|
||||
name: 'Copy to clipboard',
|
||||
keyText: 'Ctrl+C',
|
||||
disableHandleKeyText: 'Ctrl+C',
|
||||
@@ -63,7 +74,7 @@
|
||||
});
|
||||
|
||||
registerCommand({
|
||||
id: 'dataGdataFormrid.reconnect',
|
||||
id: 'dataForm.reconnect',
|
||||
category: 'Data grid',
|
||||
name: 'Reconnect',
|
||||
testEnabled: () => getCurrentDataForm() != null,
|
||||
@@ -206,6 +217,10 @@
|
||||
return former;
|
||||
}
|
||||
|
||||
// export function getFormDisplay() {
|
||||
// return formDisplay;
|
||||
// }
|
||||
|
||||
export function navigate(command) {
|
||||
if (onNavigate) onNavigate(command);
|
||||
}
|
||||
@@ -237,6 +252,10 @@
|
||||
formDisplay.reload();
|
||||
}
|
||||
|
||||
export async function refresh() {
|
||||
formDisplay.reload();
|
||||
}
|
||||
|
||||
export function filterSelectedValue() {
|
||||
formDisplay.filterCellValue(getCellColumn(currentCell), rowData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user