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