Add more airlines and fix edit bugs
This commit is contained in:
@@ -25,10 +25,6 @@ const emit = defineEmits<{
|
||||
}]
|
||||
}>()
|
||||
|
||||
const chartsVisible = ref(false)
|
||||
onMounted(async () => {
|
||||
setTimeout(() => { chartsVisible.value = true }, 1)
|
||||
})
|
||||
|
||||
const mappedFlights = computed(() => [
|
||||
...props.stats.pastFlights.value,
|
||||
@@ -41,9 +37,9 @@ const mappedFlights = computed(() => [
|
||||
<FlightMap :flights="mappedFlights" />
|
||||
<FlightFilter :flights="mappedFlights" @change="$emit('filtersChange', $event)" />
|
||||
<FlightStatsBar :flights="stats.pastFlights.value" :upcoming-flights="stats.upcomingFlights.value" />
|
||||
<FlightCharts v-if="chartsVisible" :stats="stats" :flight-stats="stats"/>
|
||||
<div v-else style="width:100%; display:flex; align-items: center;justify-content: center">
|
||||
<FlightCharts :stats="stats" :flight-stats="stats"/>
|
||||
<!-- <div v-else style="width:100%; display:flex; align-items: center;justify-content: center">
|
||||
<PlaneLoader />
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user