replace leave lobby popup with custom popup (#4449)

## Description:
old:
<img width="1009" height="491" alt="image"
src="https://github.com/user-attachments/assets/0b95877c-dac7-4025-bdfa-62ab6879d208"
/>

new:
<img width="1017" height="561" alt="image"
src="https://github.com/user-attachments/assets/cfb49b31-eb46-4d64-bd9e-3f25bb7cd0fb"
/>




## 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

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

w.o.n
This commit is contained in:
Ryan
2026-06-29 16:16:46 -07:00
committed by GitHub
parent e196d399b4
commit dae129c6a3
5 changed files with 81 additions and 20 deletions
+2 -2
View File
@@ -336,9 +336,9 @@ export class JoinLobbyModal extends BaseModal {
);
}
public confirmBeforeClose(): boolean {
public confirmBeforeClose(): boolean | Promise<boolean> {
if (!this.currentLobbyId) return true;
return confirm(translateText("host_modal.leave_confirmation"));
return this.confirmClose(translateText("host_modal.leave_confirmation"));
}
protected onClose(): void {