Release: Quarkus backend, Keycloak login, game history, clock, bot, tutorial and rematch #3
@ -182,12 +182,13 @@ const GamePage: FunctionComponent<{
|
|||||||
swal({
|
swal({
|
||||||
title: t("AreYouSureToLeaveGame"),
|
title: t("AreYouSureToLeaveGame"),
|
||||||
icon: "warning",
|
icon: "warning",
|
||||||
buttons: [t("Yes"), t("Cancel")],
|
buttons: [t("Cancel"), t("Yes")],
|
||||||
dangerMode: true,
|
dangerMode: true,
|
||||||
})
|
})
|
||||||
.then((cancel) => {
|
.then((confirm) => {
|
||||||
if (!cancel) {
|
if (confirm) {
|
||||||
context.rtmt.sendMessage(channel_leave_game, {});
|
context.rtmt.sendMessage(channel_leave_game, {});
|
||||||
|
navigate("/");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user