mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 16:23:58 +00:00
portal connect fix
This commit is contained in:
@@ -86,6 +86,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
|
const config = getCurrentConfig();
|
||||||
|
if (config.runAsPortal) {
|
||||||
|
handleConnect();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ($openedSingleDatabaseConnections.includes(data._id)) {
|
if ($openedSingleDatabaseConnections.includes(data._id)) {
|
||||||
currentDatabase.set({ connection: data, name: data.defaultDatabase });
|
currentDatabase.set({ connection: data, name: data.defaultDatabase });
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user