Updated logo API

This commit is contained in:
2026-04-23 21:32:25 +10:00
parent 110ed5b984
commit 678096b463
22 changed files with 638 additions and 146 deletions
@@ -5,12 +5,14 @@ import {usePage} from "@inertiajs/vue3";
import GlassTooltip from "@/Components/FlightsGoneBy/GlassTooltip.vue";
import InlineBadge from "@/Components/FlightsGoneBy/InlineBadge.vue";
const page = usePage<SharedProps>().props;
const props = defineProps<{
airline: Airline | null;
size?: number | string;
}>();
const logoUrl = computed(() => `url('${props.airline?.logo_url}')`);
const logoUrl = computed(() => `url('${props.airline?.logo_url ?? page.logo_api_url+'/airline/undefined/logo/tail'}')`);
const logoStyle = computed(() => ({
width: size.value,
height: size.value,