From 399bf8bb0dee6cc0475f428c5a9181abd43e898f Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Tue, 10 Feb 2026 15:01:40 +0100 Subject: [PATCH] feat(settings): change button labels for question (yes/no instead of confirm/cancel) --- .../BottomScreen/Menus/Clock/Achievements.vue | 8 +++++-- .../BottomScreen/Menus/Options/2048.vue | 6 ++++-- .../BottomScreen/Menus/User/Snake.vue | 21 +++++++++++-------- 3 files changed, 22 insertions(+), 13 deletions(-) diff --git a/app/components/Settings/BottomScreen/Menus/Clock/Achievements.vue b/app/components/Settings/BottomScreen/Menus/Clock/Achievements.vue index 504beca..89dd88e 100644 --- a/app/components/Settings/BottomScreen/Menus/Clock/Achievements.vue +++ b/app/components/Settings/BottomScreen/Menus/Clock/Achievements.vue @@ -108,8 +108,12 @@ const handleReset = () => { if (isAnimating.value) return; confirmationModal.open({ text: $t("settings.clock.achievements.resetConfirmation"), - onConfirm: () => { - achievements.reset(); + bLabel: $t("common.no"), + aLabel: $t("common.yes"), + onClosed: (choice) => { + if (choice === "confirm") { + achievements.reset(); + } }, }); }; diff --git a/app/components/Settings/BottomScreen/Menus/Options/2048.vue b/app/components/Settings/BottomScreen/Menus/Options/2048.vue index 61133cc..35de3ae 100644 --- a/app/components/Settings/BottomScreen/Menus/Options/2048.vue +++ b/app/components/Settings/BottomScreen/Menus/Options/2048.vue @@ -12,7 +12,8 @@ const handleActivateB = () => { if (isAnimating.value) return; confirmationModal.open({ text: $t("settings.options.2048.quitConfirmation"), - onConfirm: () => {}, + bLabel: $t("common.no"), + aLabel: $t("common.yes"), onClosed: async (choice) => { if (choice === "confirm") { await animateOutro(); @@ -31,7 +32,8 @@ const handleActivateA = () => { } confirmationModal.open({ text: $t("settings.options.2048.restartConfirmation"), - onConfirm: () => {}, + bLabel: $t("common.no"), + aLabel: $t("common.yes"), onClosed: (choice) => { if (choice === "confirm") { resetBoard(); diff --git a/app/components/Settings/BottomScreen/Menus/User/Snake.vue b/app/components/Settings/BottomScreen/Menus/User/Snake.vue index 2184550..2803f3f 100644 --- a/app/components/Settings/BottomScreen/Menus/User/Snake.vue +++ b/app/components/Settings/BottomScreen/Menus/User/Snake.vue @@ -91,16 +91,16 @@ const handleCancel = async () => { state.value = "pause"; confirmationModal.open({ text: $t("settings.user.snake.quitConfirmation"), - onConfirm: () => {}, + bLabel: $t("common.no"), + aLabel: $t("common.yes"), onClosed: async (choice) => { if (choice === "confirm") { await animateOutro(); store.closeSubMenu(); + } else { + state.value = "alive"; } }, - onCancel: () => { - state.value = "alive"; - }, keepButtonsDown: (choice) => choice === "confirm", }); break; @@ -122,11 +122,14 @@ const handleConfirm = () => { state.value = "pause"; confirmationModal.open({ text: $t("settings.user.snake.restartConfirmation"), - onConfirm: () => { - spawn(); - }, - onCancel: () => { - state.value = "alive"; + bLabel: $t("common.no"), + aLabel: $t("common.yes"), + onClosed: (choice) => { + if (choice === "confirm") { + spawn(); + } else { + state.value = "alive"; + } }, }); break;