MRT: Rufgruppenauswahl, Herunterfahren, Hilfe

This commit is contained in:
PxlLoewe
2026-01-15 21:12:15 +01:00
parent a65af7f011
commit 48d36af382
12 changed files with 321 additions and 104 deletions

View File

@@ -19,6 +19,10 @@ interface SetSdsReceivedPopupParams {
popup: "sds-received";
}
interface SetGroupSelectionPopupParams {
popup: "group-selection";
}
interface SetStatusSentPopupParams {
popup: "status-sent";
}
@@ -40,6 +44,7 @@ export type SetPageParams =
export type SetPopupParams =
| SetStatusSentPopupParams
| SetSdsSentPopupParams
| SetGroupSelectionPopupParams
| SetSdsReceivedPopupParams
| SetLoginPopupParams;
@@ -47,6 +52,7 @@ interface StringifiedData {
sdsText?: string;
sentSdsText?: string;
groupSelectionGroupId?: string;
callTextHeader?: string;
}
@@ -69,7 +75,9 @@ interface MrtStore {
export const useMrtStore = create<MrtStore>((set) => ({
page: "off",
nightMode: false,
stringifiedData: {},
stringifiedData: {
groupSelectionGroupId: "2201",
},
setNightMode: (nightMode) => set({ nightMode }),
setStringifiedData: (data) =>
set((state) => ({

View File

@@ -86,7 +86,7 @@ pilotSocket.on("connect", () => {
usePilotConnectionStore.setState({ status: "connected", message: "" });
const { logoffTime, selectedStation, debug } = usePilotConnectionStore.getState();
dispatchSocket.disconnect();
useAudioStore.getState().connect("VAR_LST_RD_01", selectedStation?.bosCallsignShort || "pilot");
useAudioStore.getState().connect(undefined, selectedStation?.bosCallsignShort || "pilot");
pilotSocket.emit("connect-pilot", {
logoffTime,