Updated logo API
This commit is contained in:
@@ -12,6 +12,7 @@ interface AirlineItem {
|
||||
past: number
|
||||
upcoming: number
|
||||
id: number
|
||||
logo_url: string
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
@@ -46,7 +47,7 @@ const chartEvents = computed(() => ({
|
||||
<template #tooltip="{ visible, x, y, index }">
|
||||
<ChartTooltip :visible="visible" :x="x" :y="y">
|
||||
<div class="ct-name">
|
||||
<img :src="`${page.logo_api_url}/airlines/logos/tail/id/${index !== null ? airlines[index].id : ''}`" width="24" height="24"/>
|
||||
<img :src="`${index !== null ? airlines[index].logo_url : ''}`" width="24" height="24"/>
|
||||
{{ index !== null ? airlines[index].name : '' }}
|
||||
</div>
|
||||
<div class="ct-row">
|
||||
|
||||
Reference in New Issue
Block a user