From 9fa6155cd9c9f40c4669b27f5de12583a8939d09 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Fri, 9 Dec 2022 15:48:48 +0100 Subject: [PATCH] refresh server summary --- packages/web/src/tabs/ServerSummaryTab.svelte | 85 +++++++++++++------ 1 file changed, 58 insertions(+), 27 deletions(-) diff --git a/packages/web/src/tabs/ServerSummaryTab.svelte b/packages/web/src/tabs/ServerSummaryTab.svelte index c826eac8..e859b12d 100644 --- a/packages/web/src/tabs/ServerSummaryTab.svelte +++ b/packages/web/src/tabs/ServerSummaryTab.svelte @@ -1,9 +1,28 @@ + + -{#await apiCall('server-connections/server-summary', { conid, refreshToken })} - -{:then summary} -
- ({ - ...col, - slot: col.columnType == 'bytes' ? 1 : col.columnType == 'actions' ? 2 : null, - }))} - > - {formatFileSize(row?.[col.fieldName])} - - {#each col.actions as action, index} - {#if index > 0} - | - {/if} - runAction(action, row)}>{action.header} - {/each} - - -
-{/await} + + {#await apiCall('server-connections/server-summary', { conid, refreshToken })} + + {:then summary} +
+ ({ + ...col, + slot: col.columnType == 'bytes' ? 1 : col.columnType == 'actions' ? 2 : null, + }))} + > + {formatFileSize(row?.[col.fieldName])} + + {#each col.actions as action, index} + {#if index > 0} + | + {/if} + runAction(action, row)}>{action.header} + {/each} + + +
+ {/await} + + + + +