Dispo-Option, die HPG validierung nicht zu nutzen
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { create } from "zustand";
|
||||
import { dispatchSocket } from "../../(app)/dispatch/socket";
|
||||
import { ConnectedAircraft, Mission, MissionSdsLog, Station, User } from "@repo/db";
|
||||
import { showToast } from "../../_components/customToasts/HPGnotValidated";
|
||||
import { pilotSocket } from "(app)/pilot/socket";
|
||||
import { useDmeStore } from "_store/pilot/dmeStore";
|
||||
import { useMrtStore } from "_store/pilot/MrtStore";
|
||||
@@ -132,6 +133,12 @@ pilotSocket.on("mission-alert", (data: Mission & { Stations: Station[] }) => {
|
||||
useDmeStore.getState().setPage({
|
||||
page: "new-mission",
|
||||
});
|
||||
if (
|
||||
data.hpgValidationState === "NOT_VALIDATED" &&
|
||||
usePilotConnectionStore.getState().connectedAircraft?.posH145active
|
||||
) {
|
||||
showToast();
|
||||
}
|
||||
});
|
||||
|
||||
pilotSocket.on("sds-message", (sdsMessage: MissionSdsLog) => {
|
||||
|
||||
Reference in New Issue
Block a user