Detail planovace, verejne planovain

This commit is contained in:
Michal Kváček
2024-06-11 22:03:53 +02:00
parent 852d00b932
commit e01bafee73
10 changed files with 157 additions and 14 deletions
@@ -20,7 +20,7 @@ const props = defineProps({
const emits = defineEmits(["open", "change-insert-position", "fullscren-toggle"])
const {getDuration, getTotalDistance, getTotalTime} = useFlightPlanCalculations();
const {getDuration, getTotalDistance, getTotalDuration} = useFlightPlanCalculations();
const totalDistance = computed(() => getTotalDistance(props.flightPlan));
</script>
@@ -109,7 +109,7 @@ const totalDistance = computed(() => getTotalDistance(props.flightPlan));
<q-item-section>
Celková vzdálenost: {{ totalDistance }} km
<br>
Plánovaná doba letu: {{ minutesToHumanReadable(getTotalTime(props.flightPlan, props.flightPlan.plannedSpeed)) }}
Plánovaná doba letu: {{ minutesToHumanReadable(getTotalDuration(props.flightPlan, props.flightPlan.plannedSpeed)) }}
</q-item-section>
</q-item>
</template>