Added achievement data

This commit is contained in:
2026-05-10 12:32:20 +10:00
parent 217a971360
commit eabf715bf2
2 changed files with 33 additions and 6 deletions
@@ -21,7 +21,6 @@ const props = defineProps<{
flightId?: number | null
}>()
console.log(props.user)
function editRoute(id: number) {
return route('flights.edit', { flight: id })
@@ -87,13 +86,12 @@ today.setHours(0, 0, 0, 0)
const isSorting = computed(() => sortBy.value.length > 0)
const upcomingFlights = computed(() =>
props.flightStats.upcomingFlights.value
.sort((a, b) => new Date(a.departure_date).getTime() - new Date(b.departure_date).getTime())
[...props.flightStats.upcomingFlights.value]
.sort((a, b) => new Date(a.departure_date).getTime() - new Date(b.departure_date).getTime())
)
const departedFlights = computed(() =>
props.flightStats.pastFlights.value
.filter(f => new Date(f.departure_date) < today)
[...props.flightStats.pastFlights.value]
.sort((a, b) => new Date(b.departure_date).getTime() - new Date(a.departure_date).getTime())
)