mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 19:13:59 +00:00
fix
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
export let commonProps;
|
export let commonProps;
|
||||||
export let data;
|
export let data;
|
||||||
|
|
||||||
function getStatusIcon(opened) {
|
function getStatusIcon(opened, data) {
|
||||||
const { _id, status } = data;
|
const { _id, status } = data;
|
||||||
if (opened.includes(_id)) {
|
if (opened.includes(_id)) {
|
||||||
if (!status) return 'icon loading';
|
if (!status) return 'icon loading';
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
title={data.displayName || data.server}
|
title={data.displayName || data.server}
|
||||||
icon="img server"
|
icon="img server"
|
||||||
isBold={_.get($currentDatabase, 'connection._id') == data._id}
|
isBold={_.get($currentDatabase, 'connection._id') == data._id}
|
||||||
statusIcon={getStatusIcon($openedConnections)}
|
statusIcon={getStatusIcon($openedConnections, data)}
|
||||||
statusTitle={data.status && data.status.name == 'error' ? data.status.message : null}
|
statusTitle={data.status && data.status.name == 'error' ? data.status.message : null}
|
||||||
on:click={() => ($openedConnections = _.uniq([...$openedConnections, data._id]))}
|
on:click={() => ($openedConnections = _.uniq([...$openedConnections, data._id]))}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user