diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-11 23:11:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-11 23:11:02 +0900 |
| commit | e65ee1dd3403b1572bb64217912b4bc466f65957 (patch) | |
| tree | cf120caf0b1d27b4067b1e1133b787618906d8fc /backend/admin | |
| parent | fe8b14ccc77c829a2baa4034edb22daff9d5d8f8 (diff) | |
| parent | 34d61fcc7035ebd7ffb636d13308166c90b474b2 (diff) | |
| download | phperkaigi-2025-albatross-e65ee1dd3403b1572bb64217912b4bc466f65957.tar.gz phperkaigi-2025-albatross-e65ee1dd3403b1572bb64217912b4bc466f65957.tar.zst phperkaigi-2025-albatross-e65ee1dd3403b1572bb64217912b4bc466f65957.zip | |
Merge branch 'feat/simplify-starting-procedure'
Diffstat (limited to 'backend/admin')
| -rw-r--r-- | backend/admin/handler.go | 2 | ||||
| -rw-r--r-- | backend/admin/templates/game_edit.html | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/backend/admin/handler.go b/backend/admin/handler.go index d540f57..5398107 100644 --- a/backend/admin/handler.go +++ b/backend/admin/handler.go @@ -231,7 +231,7 @@ func (h *Handler) postGameEdit(c echo.Context) error { { // TODO: - if state != row.State && state == "prepare" { + if state != row.State && state == "starting" { err := h.hubs.StartGame(int(gameID)) if err != nil { return echo.NewHTTPError(http.StatusInternalServerError, err.Error()) diff --git a/backend/admin/templates/game_edit.html b/backend/admin/templates/game_edit.html index c1e38a6..66f3b9e 100644 --- a/backend/admin/templates/game_edit.html +++ b/backend/admin/templates/game_edit.html @@ -25,9 +25,7 @@ <label>State</label> <select name="state" required> <option value="closed"{{ if eq .Game.State "closed" }} selected{{ end }}>Closed</option> - <option value="waiting_entries"{{ if eq .Game.State "waiting_entries" }} selected{{ end }}>Waiting Entries</option> - <option value="waiting_start"{{ if eq .Game.State "waiting_start" }} selected{{ end }}>Waiting Start</option> - <option value="prepare"{{ if eq .Game.State "prepare" }} selected{{ end }}>Prepare</option> + <option value="waiting"{{ if eq .Game.State "waiting" }} selected{{ end }}>Waiting</option> <option value="starting"{{ if eq .Game.State "starting" }} selected{{ end }}>Starting</option> <option value="gaming"{{ if eq .Game.State "gaming" }} selected{{ end }}>Gaming</option> <option value="finished"{{ if eq .Game.State "finished" }} selected{{ end }}>Finished</option> |
