aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-02-23 23:29:14 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-02-23 23:29:14 +0100
commitbfc2263c7ccb44f636d2e7156dd61dd749bc7131 (patch)
tree2eec42b3c8fde2ae5d9d9b730cb62356ba7cb234 /web/pw-server/src/routes
parent816b3bfc277dbdde0716fcd8946bb13440d67767 (diff)
downloadplanetwars.dev-bfc2263c7ccb44f636d2e7156dd61dd749bc7131.tar.xz
planetwars.dev-bfc2263c7ccb44f636d2e7156dd61dd749bc7131.zip
show match pane when a match is selected
Diffstat (limited to 'web/pw-server/src/routes')
-rw-r--r--web/pw-server/src/routes/index.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte
index 1ef5c68..031b60b 100644
--- a/web/pw-server/src/routes/index.svelte
+++ b/web/pw-server/src/routes/index.svelte
@@ -59,7 +59,7 @@
matches.unshift(matchData);
matches = matches;
- selectMatch(matchData["id"]);
+ await selectMatch(matchData["id"]);
}
async function selectMatch(matchId: string) {
@@ -158,14 +158,14 @@
</ul>
</div>
<div class="editor-container">
- {#if selectedMatchLog}
+ {#if selectedMatchId}
<Visualizer matchLog={selectedMatchLog} />
{:else}
<EditorView {editSession} />
{/if}
</div>
<div class="sidebar-right">
- {#if selectedMatchLog}
+ {#if selectedMatchId}
<OutputPane matchLog={selectedMatchLog} />
{:else}
<SubmitPane on:submit={submitCode} />