Compare commits
No commits in common. "aee29f1ad5995b779617f2683524ed06ed0d4632" and "aa2e573f0e69fd8ade986c342bb068a923520aee" have entirely different histories.
aee29f1ad5
...
aa2e573f0e
6 changed files with 2 additions and 35 deletions
|
|
@ -54,27 +54,7 @@ const tabs = computed<BottomTab[]>(() => [
|
||||||
disabled: !isAuthenticated.value,
|
disabled: !isAuthenticated.value,
|
||||||
},
|
},
|
||||||
{ name: t('activities.nav.map'), icon: Map, path: '/activities/map' },
|
{ name: t('activities.nav.map'), icon: Map, path: '/activities/map' },
|
||||||
{
|
{ name: t('activities.nav.favorites'), icon: Heart, path: '/activities/favorites' },
|
||||||
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,
|
|
||||||
},
|
|
||||||
])
|
])
|
||||||
|
|
||||||
// Feed tab is active for the bare /activities route AND all sub-paths that
|
// Feed tab is active for the bare /activities route AND all sub-paths that
|
||||||
|
|
|
||||||
|
|
@ -107,8 +107,6 @@ const messages: LocaleMessages = {
|
||||||
viewMyTickets: 'View in My Tickets',
|
viewMyTickets: 'View in My Tickets',
|
||||||
soldOut: 'Sold Out',
|
soldOut: 'Sold Out',
|
||||||
pastEvent: 'This event has already happened',
|
pastEvent: 'This event has already happened',
|
||||||
loginToBuyTickets: 'Log in to buy tickets',
|
|
||||||
logIn: 'Log in',
|
|
||||||
free: 'Free',
|
free: 'Free',
|
||||||
},
|
},
|
||||||
tickets: {
|
tickets: {
|
||||||
|
|
|
||||||
|
|
@ -107,8 +107,6 @@ const messages: LocaleMessages = {
|
||||||
viewMyTickets: 'Ver en Mis boletos',
|
viewMyTickets: 'Ver en Mis boletos',
|
||||||
soldOut: 'Agotado',
|
soldOut: 'Agotado',
|
||||||
pastEvent: 'Este evento ya pasó',
|
pastEvent: 'Este evento ya pasó',
|
||||||
loginToBuyTickets: 'Inicia sesión para comprar boletos',
|
|
||||||
logIn: 'Iniciar sesión',
|
|
||||||
free: 'Gratis',
|
free: 'Gratis',
|
||||||
},
|
},
|
||||||
tickets: {
|
tickets: {
|
||||||
|
|
|
||||||
|
|
@ -107,8 +107,6 @@ const messages: LocaleMessages = {
|
||||||
viewMyTickets: 'Voir dans Mes billets',
|
viewMyTickets: 'Voir dans Mes billets',
|
||||||
soldOut: 'Épuisé',
|
soldOut: 'Épuisé',
|
||||||
pastEvent: 'Cet événement est déjà passé',
|
pastEvent: 'Cet événement est déjà passé',
|
||||||
loginToBuyTickets: 'Connectez-vous pour acheter des billets',
|
|
||||||
logIn: 'Connexion',
|
|
||||||
free: 'Gratuit',
|
free: 'Gratuit',
|
||||||
},
|
},
|
||||||
tickets: {
|
tickets: {
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,6 @@ export interface LocaleMessages {
|
||||||
viewMyTickets: string
|
viewMyTickets: string
|
||||||
soldOut: string
|
soldOut: string
|
||||||
pastEvent: string
|
pastEvent: string
|
||||||
loginToBuyTickets: string
|
|
||||||
logIn: string
|
|
||||||
free: string
|
free: string
|
||||||
}
|
}
|
||||||
tickets: {
|
tickets: {
|
||||||
|
|
|
||||||
|
|
@ -145,12 +145,7 @@ const showPurchaseDialog = ref(false)
|
||||||
|
|
||||||
function openPurchaseDialog() {
|
function openPurchaseDialog() {
|
||||||
if (!isAuthenticated.value) {
|
if (!isAuthenticated.value) {
|
||||||
toastService.info(t('activities.detail.loginToBuyTickets'), {
|
toastService.info('Log in to buy tickets')
|
||||||
action: {
|
|
||||||
label: t('activities.detail.logIn'),
|
|
||||||
onClick: () => router.push('/login'),
|
|
||||||
},
|
|
||||||
})
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
showPurchaseDialog.value = true
|
showPurchaseDialog.value = true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue