mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 12:33:58 +00:00
fix
This commit is contained in:
@@ -76,15 +76,7 @@ function ConnectionAppObject({ data, commonProps }) {
|
|||||||
|
|
||||||
let statusIcon = null;
|
let statusIcon = null;
|
||||||
let statusTitle = null;
|
let statusTitle = null;
|
||||||
if (openedConnections.includes(_id)) {
|
|
||||||
if (!status) statusIcon = 'icon loading';
|
|
||||||
else if (status.name == 'pending') statusIcon = 'icon loading';
|
|
||||||
else if (status.name == 'ok') statusIcon = 'img ok';
|
|
||||||
else statusIcon = 'img error';
|
|
||||||
if (status && status.name == 'error') {
|
|
||||||
statusTitle = status.message;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let extInfo = null;
|
let extInfo = null;
|
||||||
if (extensions.drivers.find((x) => x.engine == engine)) {
|
if (extensions.drivers.find((x) => x.engine == engine)) {
|
||||||
const match = (engine || '').match(/^([^@]*)@/);
|
const match = (engine || '').match(/^([^@]*)@/);
|
||||||
@@ -95,6 +87,16 @@ function ConnectionAppObject({ data, commonProps }) {
|
|||||||
statusTitle = `Engine driver ${engine} not found, review installed plugins and change engine in edit connection dialog`;
|
statusTitle = `Engine driver ${engine} not found, review installed plugins and change engine in edit connection dialog`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (openedConnections.includes(_id)) {
|
||||||
|
if (!status) statusIcon = 'icon loading';
|
||||||
|
else if (status.name == 'pending') statusIcon = 'icon loading';
|
||||||
|
else if (status.name == 'ok') statusIcon = 'img ok';
|
||||||
|
else statusIcon = 'img error';
|
||||||
|
if (status && status.name == 'error') {
|
||||||
|
statusTitle = status.message;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppObjectCore
|
<AppObjectCore
|
||||||
{...commonProps}
|
{...commonProps}
|
||||||
|
|||||||
Reference in New Issue
Block a user