registration
This commit is contained in:
@ -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, () => {
|
||||
|
Reference in New Issue
Block a user