diff --git a/packages/web/src/appobj/ConnectionAppObject.svelte b/packages/web/src/appobj/ConnectionAppObject.svelte index c624d0bab..61c7dba89 100644 --- a/packages/web/src/appobj/ConnectionAppObject.svelte +++ b/packages/web/src/appobj/ConnectionAppObject.svelte @@ -261,6 +261,18 @@ }; return [ + !data.singleDatabase && [ + !$openedConnections.includes(data._id) && { + text: 'Connect', + onClick: handleConnect, + isBold: true, + }, + $openedConnections.includes(data._id) && { + text: 'Disconnect', + onClick: handleDisconnect, + }, + ], + { divider: true }, config.runAsPortal == false && !config.storageDatabase && [ { @@ -276,21 +288,14 @@ onClick: handleDuplicate, }, ], + { divider: true }, !data.singleDatabase && [ - !$openedConnections.includes(data._id) && { - text: 'Connect', - onClick: handleConnect, - }, hasPermission(`dbops/query`) && { onClick: handleNewQuery, text: 'New query', isNewQuery: true }, $openedConnections.includes(data._id) && data.status && { text: 'Refresh', onClick: handleRefresh, }, - $openedConnections.includes(data._id) && { - text: 'Disconnect', - onClick: handleDisconnect, - }, hasPermission(`dbops/createdb`) && $openedConnections.includes(data._id) && driver?.supportedCreateDatabase &&