feat: implement some TODOs

This commit is contained in:
2026-01-30 23:22:21 +01:00
parent db4b5cc9f9
commit 151c2ac2f4
6 changed files with 7 additions and 22 deletions

View File

@@ -110,7 +110,7 @@ onRender((ctx) => {
<template>
<NumberInput
:model-value="achievements.achievements.length"
:model-value="achievements.unlocked.length"
:title="$t('settings.clock.achievements.obtained')"
:x="4 * 16 - 1"
:selected="achievements.allObtained"

View File

@@ -16,15 +16,11 @@ const handleCancel = () => {
switch (state.value) {
case "alive": {
state.value = "pause";
// TODO: onClosed should as "choice" as a parameter, like "confirmed" or "canceled"
let quit = false;
confirmationModal.open({
text: $t("settings.user.personalMessage.quitConfirmation"),
onConfirm: () => {
quit = true;
},
onClosed: () => {
if (quit) store.closeSubMenu();
onConfirm: () => {},
onClosed: (choice) => {
if (choice === "cancel") store.closeSubMenu();
},
onCancel: () => {
state.value = "alive";