Files
OpenFrontIO/src/client
FloPinguin 4e126c2e79 Maybe for v30: Add leave confirmation dialog to JoinLobbyModal 🚪 (#3507)
## Description:

Adds a `confirmBeforeClose()` override to `JoinLobbyModal`, matching the
existing behavior in `HostLobbyModal`.

Because the german streamers had a lot of problems with accidentally
leaving today.

When a user is in a lobby and tries to close the modal (Escape key or
clicking outside), they now get a confirmation dialog asking if they
really want to leave. If the user hasn't joined a lobby yet (still on
the join form), the modal closes without prompting.

Reuses the existing `host_modal.leave_confirmation` translation key.

## Please complete the following:

- [X] I have added screenshots for all UI updates
- [X] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [X] I have added relevant tests to the test directory
- [X] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

FloPinguin
2026-03-24 13:26:57 -07:00
..
2026-03-05 15:17:28 -08:00
2026-03-03 14:07:06 -08:00
2026-02-26 17:40:57 -06:00
2026-03-23 10:01:19 -07:00
2026-03-17 15:55:47 -07:00
2026-03-09 09:31:02 -07:00
2025-09-09 14:37:06 -07:00
2026-03-17 15:55:47 -07:00
2026-03-02 18:00:34 -08:00
2026-02-26 17:40:57 -06:00
2026-03-17 15:55:47 -07:00
2026-03-20 20:43:35 -07:00
2026-03-24 12:57:08 -07:00