mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 10:23:57 +00:00
lang texts
This commit is contained in:
@@ -161,28 +161,28 @@ export function getDatabasStatusMenu(dbid) {
|
|||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
text: 'Refresh DB structure (incremental)',
|
text: _t('command.database.refreshIncremental', { defaultMessage: 'Refresh DB structure (incremental)' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
apiCall('database-connections/sync-model', dbid);
|
apiCall('database-connections/sync-model', dbid);
|
||||||
callSchemalListChanged();
|
callSchemalListChanged();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Refresh DB structure (full)',
|
text: _t('command.database.refreshFull', { defaultMessage: 'Refresh DB structure (full)' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
apiCall('database-connections/sync-model', { ...dbid, isFullRefresh: true });
|
apiCall('database-connections/sync-model', { ...dbid, isFullRefresh: true });
|
||||||
callSchemalListChanged();
|
callSchemalListChanged();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Reopen connection',
|
text: _t('command.database.reopenConnection', { defaultMessage: 'Reopen connection' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
apiCall('database-connections/refresh', dbid);
|
apiCall('database-connections/refresh', dbid);
|
||||||
callSchemalListChanged();
|
callSchemalListChanged();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: 'Disconnect',
|
text: _t('command.database.disconnect', { defaultMessage: 'Disconnect' }),
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
if (electron) apiCall('database-connections/disconnect', dbid);
|
if (electron) apiCall('database-connections/disconnect', dbid);
|
||||||
|
|||||||
Reference in New Issue
Block a user