diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-04-17 20:58:21 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-04-17 20:58:21 +0200 |
commit | 6a39dc214a877515bc2d5494b5975b513f4c1628 (patch) | |
tree | e8d95db3952b1a6d4fe0014d95b8ab1bdbbe0960 /web/pw-server/src/routes/index.svelte | |
parent | 39cec55bbe738a4c5f93913b9b016050a1953d10 (diff) | |
download | planetwars.dev-6a39dc214a877515bc2d5494b5975b513f4c1628.tar.xz planetwars.dev-6a39dc214a877515bc2d5494b5975b513f4c1628.zip |
show player names in visualizer
Diffstat (limited to 'web/pw-server/src/routes/index.svelte')
-rw-r--r-- | web/pw-server/src/routes/index.svelte | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte index 984910e..055112a 100644 --- a/web/pw-server/src/routes/index.svelte +++ b/web/pw-server/src/routes/index.svelte @@ -128,6 +128,8 @@ return timestamp.toFormat("dd/MM"); } } + + $: selectedMatch = matches.find((m) => m["id"] === selectedMatchId); </script> <div class="container"> @@ -165,7 +167,7 @@ </div> <div class="editor-container"> {#if viewMode === ViewMode.MatchVisualizer} - <Visualizer matchLog={selectedMatchLog} /> + <Visualizer matchData={selectedMatch} matchLog={selectedMatchLog} /> {:else if viewMode === ViewMode.Editor} <EditorView {editSession} /> {:else if viewMode === ViewMode.Rules} |