From 1cde40b45916d1f99a4cda7837b516cde761f127 Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Sun, 2 Jan 2022 17:57:40 +0100
Subject: basic match views

---
 web/pw-server/src/routes/matches/new.svelte | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'web/pw-server/src/routes/matches/new.svelte')

diff --git a/web/pw-server/src/routes/matches/new.svelte b/web/pw-server/src/routes/matches/new.svelte
index 10ce093..eed3dbb 100644
--- a/web/pw-server/src/routes/matches/new.svelte
+++ b/web/pw-server/src/routes/matches/new.svelte
@@ -28,6 +28,7 @@
 
 <script lang="ts">
   import Select from "svelte-select";
+import { goto } from "$app/navigation";
   export let bots: object[];
   let items: object[];
   let players: object[] = [];
@@ -64,6 +65,7 @@
 
     if (res.ok) {
       // TODO
+      goto("/matches")
     } else {
       alert(res.statusText);
     }
-- 
cgit v1.2.3

