feat(nds): improve some button interactions

This commit is contained in:
2026-02-10 17:00:11 +01:00
parent 93e6922b68
commit 069884123b
5 changed files with 18 additions and 8 deletions

View File

@@ -56,6 +56,11 @@ const { selected, selectorPosition } = useButtonNavigation({
},
});
const handleActivateB = () => {
if (store.isIntro || store.isOutro) return;
store.animateOutro();
};
const actionateButton = async (button: (typeof selected)["value"]) => {
const [action, verbKey, content] = ACTIONS[button];
const verb = $t(verbKey);
@@ -118,6 +123,6 @@ const actionateButton = async (button: (typeof selected)["value"]) => {
"
:b-label="$t('common.quit')"
:a-label="$t(`contact.actions.${ACTIONS[selected][0]}`)"
@activate-b="store.animateOutro()"
@activate-b="handleActivateB"
/>
</template>