Added autoFocus on Sds and MissionLog

This commit is contained in:
PxlLoewe
2025-06-09 23:43:51 -07:00
parent b4b7b4def2
commit 66a65ab9a4
9 changed files with 72 additions and 59 deletions

View File

@@ -5,6 +5,8 @@ import { ConnectedDispatcher } from "@repo/db";
interface ConnectionStore {
status: "connected" | "disconnected" | "connecting" | "error";
hideDraftMissions: boolean;
setHideDraftMissions: (hide: boolean) => void;
connectedDispatcher: ConnectedDispatcher | null;
message: string;
selectedZone: string;
@@ -15,6 +17,8 @@ interface ConnectionStore {
export const useDispatchConnectionStore = create<ConnectionStore>((set) => ({
status: "disconnected",
hideDraftMissions: false,
setHideDraftMissions: (hide) => set({ hideDraftMissions: hide }),
connectedDispatcher: null,
message: "",
selectedZone: "LST_01",

View File

@@ -9,6 +9,7 @@ import { useAudioStore } from "_store/audioStore";
interface ConnectionStore {
status: "connected" | "disconnected" | "connecting" | "error";
message: string;
logoffTime: string;
selectedStation: Station | null;
connectedAircraft: ConnectedAircraft | null;
@@ -34,6 +35,7 @@ export const usePilotConnectionStore = create<ConnectionStore>((set) => ({
selectedStation: null,
connectedAircraft: null,
activeMission: null,
connect: async (uid, stationId, logoffTime, station, user) =>
new Promise((resolve) => {
set({