This commit is contained in:
Michal Kváček
2023-08-26 11:45:50 +02:00
parent ccc8ff22e2
commit dcc3230cbe
18 changed files with 132 additions and 42 deletions
@@ -18,6 +18,15 @@ const props = defineProps({
<template>
<q-list bordered separator>
<q-item>
<q-item-section avatar>
<q-icon name="flight"/>
</q-item-section>
<q-item-section>
{{ flight.aircraft.callSign }}
</q-item-section>
</q-item>
<q-item>
<q-item-section avatar>
<q-icon name="event"/>
+1 -1
View File
@@ -50,7 +50,7 @@ const mapPhotos = computed(() => {
const displayMap = computed(() => {
return (
!!flight.value.gpsTrackUrl ||
!!flight.value.gpxTrackUrl ||
mapPhotos.value.length > 0 ||
trackWithGPS.value.length > 0 ||
flight.value.landingAirport.id !== flight.value.takeoffAirport.id
@@ -7,6 +7,10 @@ const props = defineProps({
flight: {
type: Object,
required: false
},
isRequestPending: {
type: Boolean,
required: true
}
}
)
@@ -16,7 +20,7 @@ const formData = reactive({
</script>
<template>
<FormWrapper v-model="formData" :save-button='{
<FormWrapper v-model="formData" :is-request-pending="isRequestPending" :save-button='{
label: "Nahrát",
icon: "upload",
align: "left"
@@ -31,7 +35,7 @@ const formData = reactive({
label="Vybert fotky k nahrání"
>
<template #prepend>
<q-icon name="upload" />
<q-icon name="upload"/>
</template>
</q-file>
</FormWrapper>