Updated logo API
This commit is contained in:
@@ -25,7 +25,7 @@ const props = defineProps<{
|
||||
flight_class: FlightClass | null
|
||||
flight_reason: FlightReason | null
|
||||
crew_type: CrewType | null
|
||||
airline_options: { value: number; title: string }[]
|
||||
airline_options: { value: number; title: string; logo_url: string}[]
|
||||
from_options: { value: number; title: string; country_code: string }[]
|
||||
to_options: { value: number; title: string; country_code: string }[]
|
||||
aircraft_options: { value: number; title: string }[]
|
||||
@@ -106,7 +106,7 @@ const form = useForm({
|
||||
arrival_date: props.flight?.arrival_date ?? '',
|
||||
from: props.flight?.from_options[0] ?? null as { value: number; title: string; country_code: string } | null,
|
||||
to: props.flight?.to_options[0] ?? null as { value: number; title: string; country_code: string } | null,
|
||||
airline: props.flight?.airline_options[0] ?? null as { value: number; title: string } | null,
|
||||
airline: props.flight?.airline_options[0] ?? null as { value: number; title: string; logo_url: string } | null,
|
||||
aircraft: props.flight?.aircraft_options[0] ?? null as { value: number; title: string } | null,
|
||||
aircraft_registration: props.flight?.aircraft_registration ?? '',
|
||||
seat_number: props.flight?.seat_number ?? '',
|
||||
@@ -170,7 +170,7 @@ function submit() {
|
||||
|
||||
// ── Prefilled options ─────────────────────────────────────────────────────────
|
||||
|
||||
const airlineOptionsData = ref<{ value: number; title: string }[]>(props.flight?.airline_options ?? [])
|
||||
const airlineOptionsData = ref<{ value: number; title: string; logo_url: string}[]>(props.flight?.airline_options ?? [])
|
||||
const fromOptionsData = ref<{ value: number; title: string; country_code: string }[]>(props.flight?.from_options ?? [])
|
||||
const toOptionsData = ref<{ value: number; title: string; country_code: string }[]>(props.flight?.to_options ?? [])
|
||||
const aircraftOptionsData = ref<{ value: number; title: string }[]>(props.flight?.aircraft_options ?? [])
|
||||
|
||||
Reference in New Issue
Block a user