default action on connection click: connect #332

This commit is contained in:
Jan Prochazka
2022-08-07 08:44:31 +02:00
parent c28e55132a
commit 71c9071cb8
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
} }
}; };

View File

@@ -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' },