registration

This commit is contained in:
2025-07-01 13:35:37 +02:00
parent fd4b122936
commit ea72074559
5 changed files with 102 additions and 72 deletions

View File

@ -66,10 +66,14 @@
</p>
</div>
<UiButtonArrow @click="() => {
menuStore.navigateToItem(menuStore.menuItems?.find((item) => item.id === 12))
if (userStore.isLogged) {
menuStore.navigateToItem(menuStore.menuItems?.find((item) => item.id === 12))
} else {
menuStore.navigateToItem(menuStore.menuItems?.find((item) => item.id === 11))
}
openCart = false
}" class="w-full" type="fill" :arrow="true" :full="true">{{
$t('to_checkout') }}
}" class="w-full" type="fill" :arrow="true" :full="true">{{ userStore.isLogged ?
$t('to_checkout') : $t('login') }}
</UiButtonArrow>
</div>
<div v-else
@ -92,6 +96,7 @@ const productStore = useProductStore()
const openCart = ref(false);
const menuStore = useMenuStore()
const userStore = useUserStore()
const dropdownRef = ref(null);
onClickOutside(dropdownRef, () => {