From 13aa2c29b08968c097a29829674e35ebe673b687 Mon Sep 17 00:00:00 2001 From: Patrick Mueller Date: Mon, 26 Sep 2022 17:45:17 +0200 Subject: [PATCH] Fix bug where summary page was displayed together with extra points page --- .../add-game/add-game.component.html | 4 ++-- .../components/add-game/add-game.component.ts | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/app/components/add-game/add-game.component.html b/src/app/components/add-game/add-game.component.html index 481ce98..0d42514 100644 --- a/src/app/components/add-game/add-game.component.html +++ b/src/app/components/add-game/add-game.component.html @@ -61,9 +61,9 @@

Please check the number of caught foxes!

-
+

Game Summary

- +
diff --git a/src/app/components/add-game/add-game.component.ts b/src/app/components/add-game/add-game.component.ts index 81206a9..d8331bb 100644 --- a/src/app/components/add-game/add-game.component.ts +++ b/src/app/components/add-game/add-game.component.ts @@ -702,4 +702,22 @@ export class AddGameComponent implements OnInit { checkAllExtraPoints(): boolean { return this.checkTotalFoxPoints(); } + + /** + * _____ + * / ___/__ ______ ___ ____ ___ ____ ________ __ + * \__ \/ / / / __ `__ \/ __ `__ \/ __ `/ ___/ / / / + * ___/ / /_/ / / / / / / / / / / / /_/ / / / /_/ / + * /____/\__,_/_/ /_/ /_/_/ /_/ /_/\__,_/_/ \__, / + * /____/ + */ + + /** + * Sends the game stats to the API to be saved + */ + saveGame(): void { + //TODO implement + // call api method, then return to gameNight page / close modal or sth like that + window.location.reload(); + } }