mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 20:23:59 +00:00
default action on connection click: connect #332
This commit is contained in:
@@ -147,11 +147,11 @@ import { tick } from 'svelte';
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getCurrentSettings()['defaultAction.connectionClick'] == 'connect') {
|
if (getCurrentSettings()['defaultAction.connectionClick'] == 'openDetails') {
|
||||||
|
handleOpenConnectionTab();
|
||||||
|
} else {
|
||||||
await tick();
|
await tick();
|
||||||
handleConnect();
|
handleConnect();
|
||||||
} else {
|
|
||||||
handleOpenConnectionTab();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ ORDER BY
|
|||||||
label="Connection click"
|
label="Connection click"
|
||||||
name="defaultAction.connectionClick"
|
name="defaultAction.connectionClick"
|
||||||
isNative
|
isNative
|
||||||
defaultValue="openDetails"
|
defaultValue="connect"
|
||||||
options={[
|
options={[
|
||||||
{ value: 'openDetails', label: 'Edit / open details' },
|
{ value: 'openDetails', label: 'Edit / open details' },
|
||||||
{ value: 'connect', label: 'Connect' },
|
{ value: 'connect', label: 'Connect' },
|
||||||
|
|||||||
Reference in New Issue
Block a user