diff --git a/stream/tiling-frontend/src/App.svelte b/stream/tiling-frontend/src/App.svelte index a4641cd..bc18fb4 100644 --- a/stream/tiling-frontend/src/App.svelte +++ b/stream/tiling-frontend/src/App.svelte @@ -9,6 +9,7 @@ }[] | null = null; let activeStream: string; + let oldActiveStream: string | null = null; let newData: | { bytesSent: any; @@ -19,7 +20,6 @@ }[] | null = null; let activePaths: string[] = []; - onMount(() => { const fetchData = async () => { try { @@ -27,6 +27,10 @@ "http://localhost:8000/api/v1/active_stream", ); activeStream = (await activeStreamResponse.text()).replaceAll('"', ""); + if (oldActiveStream !== null && oldActiveStream !== activeStream) { + window.location.reload(); + } + oldActiveStream = activeStream; const pathListResponse = await fetch( "http://localhost:9997/v3/paths/list", ); @@ -83,7 +87,7 @@
-

+

OnBoard Live Design Stream

- {#each pathData as path} - {#if path.ready && path.name !== activeStream} + {#each activePaths as path} + {#if path !== activeStream} {/if} @@ -143,7 +147,7 @@

{/if} -

+

Join at