feat(common): handleConfirm -> handleActivateA, handleCancel -> handleActivateB
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user