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