diff --git a/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/MfdFmsPerf.tsx b/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/MfdFmsPerf.tsx index 1b22267a030..b8e9b9ddcb1 100644 --- a/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/MfdFmsPerf.tsx +++ b/fbw-a380x/src/systems/instruments/src/MFD/pages/FMS/MfdFmsPerf.tsx @@ -45,6 +45,8 @@ export class MfdFmsPerf extends FmsPage { private managedSpeedActive = Subject.create(false); + private previousFmsFlightPhase: FmgcFlightPhase | null = null; + // Subjects private crzFl = Subject.create(null); @@ -594,6 +596,24 @@ export class MfdFmsPerf extends FmsPage { this.activateApprButton.instance.style.visibility = 'hidden'; } } + + if (this.previousFmsFlightPhase) { + const isSamePhase = this.flightPhasesSelectedPageIndex.get() + 1 === this.previousFmsFlightPhase; + if (isSamePhase) { + switch (val) { + case FmgcFlightPhase.Takeoff: + case FmgcFlightPhase.Climb: + case FmgcFlightPhase.Cruise: + case FmgcFlightPhase.Descent: + case FmgcFlightPhase.Approach: + case FmgcFlightPhase.GoAround: { + this.flightPhasesSelectedPageIndex.set(val - 1); + break; + } + } + } + } + this.previousFmsFlightPhase = val; }, true), );