added MRT sds image
This commit is contained in:
@@ -24,7 +24,7 @@ export const useButtons = () => {
|
||||
const { page, setPage } = useMrtStore((state) => state);
|
||||
|
||||
const handleButton =
|
||||
(button: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "0") => () => {
|
||||
(button: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "0" | "home") => () => {
|
||||
if (connectionStatus !== "connected") return;
|
||||
if (!station) return;
|
||||
if (!connectedAircraft?.id) return;
|
||||
@@ -40,7 +40,6 @@ export const useButtons = () => {
|
||||
button === "9" ||
|
||||
button === "0"
|
||||
) {
|
||||
if (page !== "home") return;
|
||||
setPage({ page: "sending-status", station });
|
||||
|
||||
setTimeout(async () => {
|
||||
@@ -56,6 +55,8 @@ export const useButtons = () => {
|
||||
fmsStatus: button,
|
||||
});
|
||||
}, 1000);
|
||||
} else {
|
||||
setPage({ page: "home", fmsStatus: connectedAircraft.fmsStatus || "6", station });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user