mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 15:25:59 +00:00
electron app starting
This commit is contained in:
@@ -22,19 +22,19 @@ registerCommand({
|
||||
{
|
||||
text: 'Sync model',
|
||||
onClick: () => {
|
||||
axiosInstance.post('database-connections/sync-model', dbid);
|
||||
axiosInstance().post('database-connections/sync-model', dbid);
|
||||
},
|
||||
},
|
||||
{
|
||||
text: 'Reopen',
|
||||
onClick: () => {
|
||||
axiosInstance.post('database-connections/refresh', dbid);
|
||||
axiosInstance().post('database-connections/refresh', dbid);
|
||||
},
|
||||
},
|
||||
{
|
||||
text: 'Disconnect',
|
||||
onClick: () => {
|
||||
if (electron) axiosInstance.post('database-connections/disconnect', dbid);
|
||||
if (electron) axiosInstance().post('database-connections/disconnect', dbid);
|
||||
currentDatabase.set(null);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user