diff --git a/src/components/flightPlans/FlightPlanMap.vue b/src/components/flightPlans/FlightPlanMap.vue index badefb5..e4db124 100644 --- a/src/components/flightPlans/FlightPlanMap.vue +++ b/src/components/flightPlans/FlightPlanMap.vue @@ -43,12 +43,12 @@ const handleMarkerClick = (marker) => { } const markers = ref([]); -watch(() => props.flightPlan.track, (newVal) => { +watch(() => props.flightPlan.navlog, (newVal) => { markers.value = getMarkersFrom(props.flightPlan); }, {immediate: true, deep: true}); const track = computed(() => markers.value.map(m => ({lat: m.gpsLatitude, lng: m.gpsLongitude}))); -const trackAids = computed(() => props.flightPlan.track.map(p => ({ +const trackAids = computed(() => props.flightPlan.navlog.map(p => ({ ...p, anchorPoint: 'CENTER', bearing: p.bearing, diff --git a/src/components/flightPlans/FlightPlanRouteTable.vue b/src/components/flightPlans/FlightPlanRouteTable.vue index 169e336..b4be218 100644 --- a/src/components/flightPlans/FlightPlanRouteTable.vue +++ b/src/components/flightPlans/FlightPlanRouteTable.vue @@ -47,7 +47,7 @@ const columns = [ const {getDuration, getTotalDuration, getTotalDistance} = useFlightPlanCalculations(); -const data = computed(() => props.flightPlan.track.map((item) => ({ +const data = computed(() => props.flightPlan.navlog.map((item) => ({ from: textEllipsis(item.from.name, 30), to: textEllipsis(item.to.name, 30), distance: `${item.distance} km`, diff --git a/src/components/flightPlans/FlightPlanSideControls.vue b/src/components/flightPlans/FlightPlanSideControls.vue index 45d11bd..93c91fa 100644 --- a/src/components/flightPlans/FlightPlanSideControls.vue +++ b/src/components/flightPlans/FlightPlanSideControls.vue @@ -48,7 +48,7 @@ const totalDistance = computed(() => getTotalDistance(props.flightPlan)); -