Update drop-and-fusion.vue

This commit is contained in:
syuilo 2024-01-09 20:52:59 +09:00
parent f85b9107e2
commit 31a25f9332
1 changed files with 7 additions and 2 deletions

View File

@ -153,7 +153,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
<div :class="$style.frame">
<div :class="$style.frameInner">
<MkButton @click="surrender">Retry</MkButton>
<MkButton danger @click="surrender">Retry</MkButton>
</div>
</div>
</div>
@ -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();
}