From 31a25f9332af6dcd5f3c44229c0a445207c4eb44 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 9 Jan 2024 20:52:59 +0900 Subject: [PATCH] Update drop-and-fusion.vue --- packages/frontend/src/pages/drop-and-fusion.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/drop-and-fusion.vue b/packages/frontend/src/pages/drop-and-fusion.vue index dbfa4ae02c..974daf35e4 100644 --- a/packages/frontend/src/pages/drop-and-fusion.vue +++ b/packages/frontend/src/pages/drop-and-fusion.vue @@ -153,7 +153,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- Retry + Retry
@@ -474,7 +474,12 @@ function hold() { game.hold(); } -function surrender() { +async function surrender() { + const { canceled } = await os.confirm({ + type: 'warning', + text: i18n.ts.areYouSure, + }); + if (canceled) return; game.surrender(); }