Detail planovace, verejne planovain
This commit is contained in:
@@ -45,7 +45,7 @@ const columns = [
|
||||
},
|
||||
];
|
||||
|
||||
const {getDuration, getTotalTime, getTotalDistance} = useFlightPlanCalculations();
|
||||
const {getDuration, getTotalDuration, getTotalDistance} = useFlightPlanCalculations();
|
||||
|
||||
const data = computed(() => props.flightPlan.track.map((item) => ({
|
||||
from: textEllipsis(item.from.name, 30),
|
||||
@@ -73,7 +73,7 @@ const {screen} = useQuasar();
|
||||
<tr class="summary">
|
||||
<td v-for="col in cols" :key="col.field" :class="{'text-right': col.align === 'right'}">
|
||||
<template v-if="col.field === 'duration'">
|
||||
{{ minutesToHumanReadable(getTotalTime(flightPlan, plannedSpeed)) }}
|
||||
{{ minutesToHumanReadable(getTotalDuration(flightPlan, plannedSpeed)) }}
|
||||
</template>
|
||||
<template v-else-if="col.field === 'distance'">
|
||||
{{ getTotalDistance(flightPlan) }} km
|
||||
|
||||
Reference in New Issue
Block a user