diff --git a/frontend/src/pages/game/createLocalGamePage.vue b/frontend/src/pages/game/createLocalGamePage.vue index a17c1f9..5496d7e 100644 --- a/frontend/src/pages/game/createLocalGamePage.vue +++ b/frontend/src/pages/game/createLocalGamePage.vue @@ -1,7 +1,168 @@ diff --git a/frontend/src/pages/game/gameModeSelectPage.vue b/frontend/src/pages/game/gameModeSelectPage.vue index 0bcc2c6..e997f4f 100644 --- a/frontend/src/pages/game/gameModeSelectPage.vue +++ b/frontend/src/pages/game/gameModeSelectPage.vue @@ -73,6 +73,15 @@ async function CreateGame(is_local) { .then(function (response) { console.log(response) + + LocalStorage.setItem("gameID", response.data.game.id) + + if (is_local) { + router.push("/game/local/create") + } else { + router.push("/game/online/create") + } + $q.notify({ type: "positive", message: `Success!`,