Added achievement data
This commit is contained in:
@@ -2,21 +2,14 @@
|
||||
import { Aircraft } from "@/Types/types";
|
||||
import GlassTooltip from "@/Components/FlightsGoneBy/GlassTooltip.vue";
|
||||
import InlineBadge from "@/Components/FlightsGoneBy/InlineBadge.vue";
|
||||
import WakeTurbulence from "@/Components/FlightsGoneBy/WakeTurbulence.vue";
|
||||
|
||||
defineProps<{
|
||||
aircraft: Aircraft
|
||||
showTooltips?: boolean
|
||||
}>()
|
||||
|
||||
function formatWtc(wtc: string): string {
|
||||
switch (wtc.toUpperCase()) {
|
||||
case 'L': return 'Light'
|
||||
case 'M': return 'Medium'
|
||||
case 'H': return 'Heavy'
|
||||
case 'J': return 'Super'
|
||||
default: return wtc
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function formatEngineType(type: string): string {
|
||||
return type.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase())
|
||||
@@ -41,7 +34,7 @@ function formatEngineType(type: string): string {
|
||||
{{aircraft.designator }}
|
||||
</InlineBadge>
|
||||
<InlineBadge variant="generic">
|
||||
{{ formatWtc(aircraft.wtc) }}
|
||||
<WakeTurbulence :value="aircraft.wtc" />
|
||||
</InlineBadge>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user