feat(common): handleConfirm -> handleActivateA, handleCancel -> handleActivateB

This commit is contained in:
2026-02-10 15:30:08 +01:00
parent ca05d0ea65
commit 38b36d0e1c
12 changed files with 60 additions and 63 deletions

View File

@@ -98,7 +98,7 @@ onMounted(() => {
animateIntro();
});
const handleCancel = async () => {
const handleActivateB = async () => {
if (isAnimating.value) return;
await animateOutro();
store.closeSubMenu();
@@ -111,7 +111,7 @@ const handleReset = () => {
bLabel: $t("common.no"),
aLabel: $t("common.yes"),
onClosed: (choice) => {
if (choice === "confirm") {
if (choice === "A") {
achievements.reset();
}
},
@@ -199,7 +199,7 @@ onRender((ctx) => {
:y-offset="confirmationModal.buttonsYOffset + store.submenuButtonsOffsetY"
:b-label="$t('common.cancel')"
:a-label="$t('common.reset')"
@activate-b="handleCancel()"
@activate-b="handleActivateB()"
@activate-a="handleReset()"
/>
</template>