Compare commits

..

No commits in common. "aee29f1ad5995b779617f2683524ed06ed0d4632" and "aa2e573f0e69fd8ade986c342bb068a923520aee" have entirely different histories.

6 changed files with 2 additions and 35 deletions

View file

@ -54,27 +54,7 @@ const tabs = computed<BottomTab[]>(() => [
disabled: !isAuthenticated.value,
},
{ name: t('activities.nav.map'), icon: Map, path: '/activities/map' },
{
name: t('activities.nav.favorites'),
icon: Heart,
// path kept so the tab stays active-highlighted while the user is
// on /activities/favorites; onClick wins for the actual tap so we
// can gate on auth (mirrors the Create tab pattern above).
path: '/activities/favorites',
onClick: () => {
if (!isAuthenticated.value) {
toast.info(t('activities.favorites.loginPrompt'), {
action: {
label: t('activities.favorites.logIn'),
onClick: () => router.push('/login'),
},
})
return
}
router.push('/activities/favorites')
},
disabled: !isAuthenticated.value,
},
{ name: t('activities.nav.favorites'), icon: Heart, path: '/activities/favorites' },
])
// Feed tab is active for the bare /activities route AND all sub-paths that

View file

@ -107,8 +107,6 @@ const messages: LocaleMessages = {
viewMyTickets: 'View in My Tickets',
soldOut: 'Sold Out',
pastEvent: 'This event has already happened',
loginToBuyTickets: 'Log in to buy tickets',
logIn: 'Log in',
free: 'Free',
},
tickets: {

View file

@ -107,8 +107,6 @@ const messages: LocaleMessages = {
viewMyTickets: 'Ver en Mis boletos',
soldOut: 'Agotado',
pastEvent: 'Este evento ya pasó',
loginToBuyTickets: 'Inicia sesión para comprar boletos',
logIn: 'Iniciar sesión',
free: 'Gratis',
},
tickets: {

View file

@ -107,8 +107,6 @@ const messages: LocaleMessages = {
viewMyTickets: 'Voir dans Mes billets',
soldOut: 'Épuisé',
pastEvent: 'Cet événement est déjà passé',
loginToBuyTickets: 'Connectez-vous pour acheter des billets',
logIn: 'Connexion',
free: 'Gratuit',
},
tickets: {

View file

@ -82,8 +82,6 @@ export interface LocaleMessages {
viewMyTickets: string
soldOut: string
pastEvent: string
loginToBuyTickets: string
logIn: string
free: string
}
tickets: {

View file

@ -145,12 +145,7 @@ const showPurchaseDialog = ref(false)
function openPurchaseDialog() {
if (!isAuthenticated.value) {
toastService.info(t('activities.detail.loginToBuyTickets'), {
action: {
label: t('activities.detail.logIn'),
onClick: () => router.push('/login'),
},
})
toastService.info('Log in to buy tickets')
return
}
showPurchaseDialog.value = true