From 704a04e9bbbc707648b53e3b44fbd88a10d5f115 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 21 Feb 2021 08:40:27 +0100 Subject: [PATCH] fix --- packages/web/src/appobj/ConnectionAppObject.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/src/appobj/ConnectionAppObject.svelte b/packages/web/src/appobj/ConnectionAppObject.svelte index 7085106d..0cf2c44e 100644 --- a/packages/web/src/appobj/ConnectionAppObject.svelte +++ b/packages/web/src/appobj/ConnectionAppObject.svelte @@ -6,7 +6,7 @@ export let commonProps; export let data; - function getStatusIcon(opened) { + function getStatusIcon(opened, data) { const { _id, status } = data; if (opened.includes(_id)) { if (!status) return 'icon loading'; @@ -22,7 +22,7 @@ title={data.displayName || data.server} icon="img server" 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} on:click={() => ($openedConnections = _.uniq([...$openedConnections, data._id]))} />