From 76da7a79a2fd54a0a84afe9071ee21f1a23207c9 Mon Sep 17 00:00:00 2001 From: BBK <22713769+BlueberryKing@users.noreply.github.com> Date: Mon, 27 Nov 2023 22:18:23 +0100 Subject: [PATCH] Fix SEC flightplan formatting --- .../FlyByWire_A320_Neo/CDU/A320_Neo_CDU_FlightPlanPage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU_FlightPlanPage.js b/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU_FlightPlanPage.js index 3f14f7cc682..1e10ed65ba5 100644 --- a/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU_FlightPlanPage.js +++ b/fbw-a32nx/src/base/flybywire-aircraft-a320-neo/html_ui/Pages/VCockpit/Instruments/Airliners/FlyByWire_A320_Neo/CDU/A320_Neo_CDU_FlightPlanPage.js @@ -311,7 +311,7 @@ class CDUFlightPlanPage { timeColor = color; } else if (!inAlternate && fpIndex === targetPlan.originLegIndex) { - timeCell = "0000"; + timeCell = "{big}0000{end}"; timeColor = color; } @@ -516,7 +516,8 @@ class CDUFlightPlanPage { }); } else if (pwp) { - const color = targetPlan.index !== Fmgc.FlightPlanIndex.Temporary ? (isActive ? "white" : "green") : "yellow"; + const baseColor = forActiveOrTemporary ? mcdu.flightPlanService.hasTemporary ? "yellow" : "green" : "white"; + const color = isActive ? "white" : baseColor; // TODO: PWP should not be shown while predictions are recomputed or in a temporary flight plan, // but if I don't show them, the flight plan jumps around because the offset is no longer correct if the number of items in the flight plan changes.