Compare commits
2 commits
3189adf579
...
434d57974f
| Author | SHA1 | Date | |
|---|---|---|---|
| 434d57974f | |||
| 3dfa69315c |
2 changed files with 17 additions and 2 deletions
|
|
@ -68,7 +68,9 @@ function getDotCount(date: Date): number {
|
|||
return Math.min(getEventsForDay(date).length, 3)
|
||||
}
|
||||
|
||||
const selectedDay = ref<Date | null>(null)
|
||||
// Default the selection to today so the calendar opens on today's events
|
||||
// rather than an empty panel (currentMonth already starts on this month).
|
||||
const selectedDay = ref<Date | null>(new Date())
|
||||
const selectedDayEvents = computed(() => {
|
||||
if (!selectedDay.value) return []
|
||||
return getEventsForDay(selectedDay.value)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { computed, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { Ticket } from 'lucide-vue-next'
|
||||
import { ArrowLeft, Ticket } from 'lucide-vue-next'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { useEvents } from '../composables/useEvents'
|
||||
import { useOwnedTickets } from '../composables/useOwnedTickets'
|
||||
|
|
@ -34,10 +34,23 @@ onMounted(() => {
|
|||
function handleSelectEvent(event: Event) {
|
||||
router.push({ name: 'event-detail', params: { id: event.id } })
|
||||
}
|
||||
|
||||
function goBack() {
|
||||
router.push({ name: 'events' })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="container mx-auto px-4 py-6 max-w-lg">
|
||||
<!-- Back to the events feed — mirrors EventDetailPage's top-bar
|
||||
back link for navigation consistency. -->
|
||||
<div class="flex items-center mb-4">
|
||||
<Button variant="ghost" size="sm" class="gap-1.5" @click="goBack">
|
||||
<ArrowLeft class="w-4 h-4" />
|
||||
{{ t('common.nav.back', 'Back') }}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<!-- Filter chip: narrows the calendar to events the user has
|
||||
paid tickets for. Hidden when logged out — nothing to own.
|
||||
Left-aligned so it doesn't collide with the fixed top-right
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue