Skip to content

Commit

Permalink
Fix SEC flightplan formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueberryKing committed Nov 27, 2023
1 parent 69a7f24 commit 76da7a7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class CDUFlightPlanPage {

timeColor = color;
} else if (!inAlternate && fpIndex === targetPlan.originLegIndex) {
timeCell = "0000";
timeCell = "{big}0000{end}";
timeColor = color;
}

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 76da7a7

Please sign in to comment.