fix(settings): synchronize button animation with arrows of number input
This commit is contained in:
@@ -18,6 +18,9 @@ const SLIDE_DURATION = 0.25;
|
||||
|
||||
const isAnimating = ref(true);
|
||||
|
||||
const bLabel = ref($t("common.goBack"));
|
||||
const aLabel = ref($t("common.select"));
|
||||
|
||||
const animation = reactive({
|
||||
_3dMode: { headerOffsetY: HEADER_HEIGHT * 3, opacity: 0 },
|
||||
_2dMode: { headerOffsetY: HEADER_HEIGHT * 3, opacity: 0 },
|
||||
@@ -48,6 +51,14 @@ const animateIntro = async () => {
|
||||
ease: "none",
|
||||
},
|
||||
BUTTON_STAGGER,
|
||||
)
|
||||
.call(
|
||||
() => {
|
||||
bLabel.value = $t("common.cancel");
|
||||
aLabel.value = $t("common.confirm");
|
||||
},
|
||||
[],
|
||||
SUBMENU_LABEL_CHANGE_DELAY,
|
||||
);
|
||||
isAnimating.value = false;
|
||||
};
|
||||
@@ -183,8 +194,8 @@ onRender((ctx) => {
|
||||
<template>
|
||||
<CommonButtons
|
||||
:y-offset="confirmationModal.buttonsYOffset + store.submenuButtonsOffsetY"
|
||||
:b-label="$t('common.cancel')"
|
||||
:a-label="$t('common.confirm')"
|
||||
:b-label="bLabel"
|
||||
:a-label="aLabel"
|
||||
@activate-b="handleActivateB"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user