diff --git a/src/components/flightPlans/FlightPlanRouteTable.vue b/src/components/flightPlans/FlightPlanNavLogTable.vue
similarity index 98%
rename from src/components/flightPlans/FlightPlanRouteTable.vue
rename to src/components/flightPlans/FlightPlanNavLogTable.vue
index 169e336..dc52535 100644
--- a/src/components/flightPlans/FlightPlanRouteTable.vue
+++ b/src/components/flightPlans/FlightPlanNavLogTable.vue
@@ -18,7 +18,6 @@ const props = defineProps({
const columns = [
{
- // name: 'from',
label: 'Z',
align: "left",
field: 'from'
diff --git a/src/components/flightPlans/FlightPlanWeatherInfo.vue b/src/components/flightPlans/FlightPlanWeatherInfo.vue
new file mode 100644
index 0000000..a0e8088
--- /dev/null
+++ b/src/components/flightPlans/FlightPlanWeatherInfo.vue
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+ {{ props.row.name }}
+
+
+
+
+
+ {{ props.row.weatherInfo.temperatureSurface }}° C
+
+ Rosný bod {{ props.row.weatherInfo.dewpointSurface }}° C
+
+
+
+
+
+
+
+ {{ props.row.weatherInfo.windDirectionSurface }}°
+
+ {{ kmhToKnots(props.row.weatherInfo.windSpeedSurface) }} kt
+
+
+
+
+
+
+
+ celkové pokrytí oblačností {{ props.row.weatherInfo.cloudcoverTotal }} %
+
+ nízké mraky {{ props.row.weatherInfo.cloudcoverLow }} %
+
+
+
+
+
+
diff --git a/src/components/weather/WeatherInfo.vue b/src/components/weather/WeatherInfo.vue
index 9d3bd9f..0c36955 100644
--- a/src/components/weather/WeatherInfo.vue
+++ b/src/components/weather/WeatherInfo.vue
@@ -1,6 +1,7 @@
diff --git a/src/composables/units.js b/src/composables/units.js
index 18c2c1d..1674b46 100644
--- a/src/composables/units.js
+++ b/src/composables/units.js
@@ -1,3 +1,8 @@
-export const ktToKph = (speedInKt) => {
- return speedInKt;
+export const useUnitsConvertors = () => {
+
+ const kmhToKnots = (speedKmh) => {
+ return Math.round(speedKmh * 0.53996);
+ }
+
+ return {kmhToKnots}
}
diff --git a/src/graphql/fragments/flightPlan.js b/src/graphql/fragments/flightPlan.js
index cf2c0db..4f99af8 100644
--- a/src/graphql/fragments/flightPlan.js
+++ b/src/graphql/fragments/flightPlan.js
@@ -1,4 +1,5 @@
import gql from "graphql-tag";
+import {FRAGMENT_WEATHER_FULL_INFO} from "src/graphql/fragments/flight";
export const FRAGMENT_FLIGHT_PLAN_MARKER = gql`
fragment flightPlanMarker on FlightPlanMarker {
@@ -9,7 +10,13 @@ fragment flightPlanMarker on FlightPlanMarker {
gpsLongitude
pointOfInterestId
airportId
+
+ weatherInfo {
+ ...weatherFullInfo
+ }
}
+
+${FRAGMENT_WEATHER_FULL_INFO}
`
export const FRAGMENT_FLIGHT_PLAN_FULL_INFO = gql`
diff --git a/src/pages/profile/flightPlanner/FlightPlanEditPage.vue b/src/pages/profile/flightPlanner/FlightPlanEditPage.vue
index 1f4abe4..90a7497 100644
--- a/src/pages/profile/flightPlanner/FlightPlanEditPage.vue
+++ b/src/pages/profile/flightPlanner/FlightPlanEditPage.vue
@@ -22,12 +22,13 @@ import FlightPlanSideControls from "components/flightPlans/FlightPlanSideControl
import {useAircraftsStore} from "stores/Aircrafts";
import {errorObject, successObject} from "src/composables/dialog";
import {useQuasar} from "quasar";
-import FlightPlanRouteTable from "components/flightPlans/FlightPlanRouteTable.vue";
+import FlightPlanNavLogTable from "components/flightPlans/FlightPlanNavLogTable.vue";
import FlightPlanForm from "components/flightPlans/FlightPlanForm.vue";
import {useFlightsStore} from "stores/Flights";
import {useRouter} from "vue-router";
import FlightFromPlanForm from "components/flightPlans/FlightFromPlanForm.vue";
import BasicInfoBanner from "components/banners/BasicInfoBanner.vue";
+import FlightPlanWeatherInfo from "components/flightPlans/FlightPlanWeatherInfo.vue";
const {flightPlan} = storeToRefs(useFlightPlansStore());
const flightPlanName = computed(() => flightPlan.value.name || "Nepojmenovaný plán");
@@ -156,6 +157,11 @@ const createNewFlightFromPlan = (formData) => {
Informace
+
+
+ Počasí
+
+
Navigační štítek
@@ -208,12 +214,16 @@ const createNewFlightFromPlan = (formData) => {
-
+
+
+
+
V plánu nemáš žádné letiště vzletu nebo přistání. Pro import letu musíš nahrát trasu.
diff --git a/src/pages/public/pilotProfile/FlightPlanDetail.vue b/src/pages/public/pilotProfile/FlightPlanDetail.vue
index 5179ff1..89e9804 100644
--- a/src/pages/public/pilotProfile/FlightPlanDetail.vue
+++ b/src/pages/public/pilotProfile/FlightPlanDetail.vue
@@ -21,7 +21,7 @@ import {usePointsOfInterestStore} from "stores/PointsOfInterest";
import {useAirportsStore} from "stores/Airports";
import {formatDatetime, minutesToHumanReadable} from "src/composables/datetimeUtils";
import {useFlightPlanCalculations, useFlightPlanUtils} from "src/composables/flightPlan";
-import FlightPlanRouteTable from "components/flightPlans/FlightPlanRouteTable.vue";
+import FlightPlanRouteTable from "components/flightPlans/FlightPlanNavLogTable.vue";
import {useMeta} from "quasar";
import {metaData} from "src/composables/meta";