This commit is contained in:
SPRINX0\prochazka
2025-05-22 13:20:39 +02:00
parent 5c33579544
commit 1b8bb0c1fd
2 changed files with 28 additions and 2 deletions

View File

@@ -25,7 +25,10 @@
switch (data.type) {
case 'connection':
const conn = await apiCall('connections/get', { conid: data.conid });
$cloudConnectionsStore[data.conid] = conn;
$cloudConnectionsStore = {
...$cloudConnectionsStore,
[data.conid]: conn,
};
openConnection(conn);
break;
}
@@ -34,6 +37,7 @@
{#if data.conid && $cloudConnectionsStore[data.conid]}
<ConnectionAppObject
{...$$restProps}
{passProps}
data={{
...$cloudConnectionsStore[data.conid],