Zobrazeni linku na event u detailu letu

This commit is contained in:
Michal Kváček
2024-02-26 09:45:23 +01:00
parent 1a5c8f09bf
commit 92678ec829
7 changed files with 74 additions and 25 deletions
@@ -21,6 +21,11 @@ const props = defineProps({
type: Object,
required: false,
default: null
},
eventDetailRoute: {
type: Object,
required: false,
default: null
}
})
</script>
@@ -122,6 +127,18 @@ const props = defineProps({
{{ minutesToHumanReadable(flight.durationMinCalculated) }}
</q-item-section>
</q-item>
<q-item v-if="flight.event && flight.event.isPublic">
<q-item-section avatar>
<q-icon name="event"/>
</q-item-section>
<q-item-section>
<router-link :to="eventDetailRoute">
{{ flight.event.name }}
</router-link>
</q-item-section>
</q-item>
<q-item v-if="flight.copilots?.length > 0">
<q-list>
<q-item v-for="copilot in flight.copilots" :key="copilot.id">