This commit is contained in:
Jan Prochazka
2020-12-05 08:37:23 +01:00
parent 785c7e54ab
commit 65197cf038

View File

@@ -76,15 +76,7 @@ function ConnectionAppObject({ data, commonProps }) {
let statusIcon = 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;
if (extensions.drivers.find((x) => x.engine == engine)) {
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`;
}
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 (
<AppObjectCore
{...commonProps}