Added Notifications

This commit is contained in:
dredgy committed 2026-05-16 23:48:18 +10:00
1 parent 69d72e0912
commit 1d5b9f340f
61 files changed
+4204 -182

No files matched your search

+4 -2
View File
@@ -3,13 +3,15 @@ import {onMounted, ref} from "vue";
import {Flight} from "@/Types/types";
import axios from "axios";
export function useFlights(url: string) {
export function useFlights(url: string, departedOnly: boolean = false) {
const flights = ref<Flight[]>([])
const flightsLoading = ref(true)
onMounted(async () => {
try {
const response = await axios.get(url)
const response = await axios.get(url, {
params: departedOnly ? { departed_only: true } : {}
})
flights.value = response.data
} finally {
flightsLoading.value = false