Uprava publikovani objektu, bugfixing

This commit is contained in:
Michal Kváček
2024-01-18 06:52:39 +01:00
parent 5a5c7cb645
commit 0c89884b23
17 changed files with 105 additions and 46 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ const props = defineProps({
<q-item-section>
<router-link
:to="{...aircraftDetailRoute, params: {id: flight.aircraft.id, callSign: flight.aircraft.callSign}}"
v-if="aircraftDetailRoute"
v-if="flight.aircraft.isPublic"
>
{{ flight.aircraft.callSign }}
</router-link>
@@ -79,7 +79,7 @@ const props = defineProps({
<q-item-section>
<template v-if="poi.pointOfInterest">
<router-link
:to="{name: poiDetailRoute.name, params: {...poiDetailRoute.params, poiSlug: poi.pointOfInterest.urlSlug, id: poi.pointOfInterest.id}}"
:to="{name: poiDetailRoute.name, params: {...poiDetailRoute.params, slug: poi.pointOfInterest.urlSlug, id: poi.pointOfInterest.id}}"
v-if="poi.pointOfInterest.isPublic"
>
{{ poi.pointOfInterest.name }}
@@ -52,6 +52,7 @@ watch(poi, (newVal) => {
});
watch(() => props.flight.track, (newVal) => {
formData.track = [];
for (const i in newVal) {
const trackInfo = newVal[i];
const info = {landingDuration: trackInfo.landingDuration};
@@ -16,7 +16,7 @@ const props = defineProps({
<template>
<div class="text-h4">
<router-link :class="`text-${props.textColor}`" :to="{name: 'publicFlightDetail', params: {username: flight.pilot.publicUsername, id: flight.id}}">
<router-link :class="`text-${props.textColor}`" :to="{name: 'publicFlightDetail', params: {username: flight.pilot.publicUsername, flightSlug: flight.urlSlug}}">
{{ flightName(flight) }}
</router-link>
</div>