diff --git a/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx b/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx
index 9554bf2b..9e305161 100644
--- a/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx
+++ b/apps/dispatch/app/_components/map/_components/AircraftMarkerTabs.tsx
@@ -290,6 +290,8 @@ const SDSTab = ({
const [note, setNote] = useState("");
const queryClient = useQueryClient();
+ const dispatcherConnected = useDispatchConnectionStore((s) => s.status) === "connected";
+
const sendSdsMutation = useMutation({
mutationFn: async ({ id, message }: { id: number; message: MissionSdsLog }) => {
await sendSdsMessageAPI(id, message);
@@ -309,65 +311,69 @@ const SDSTab = ({
return (
-
- {!isChatOpen ? (
-
- ) : (
-
-
setNote(e.target.value)}
- />
-
+ )}
{log.map((entry, index) => {
const sdsEntry = entry as MissionSdsLog;
diff --git a/apps/dispatch/app/_store/pilot/MrtStore.ts b/apps/dispatch/app/_store/pilot/MrtStore.ts
index 7a2c5cd5..f8d70138 100644
--- a/apps/dispatch/app/_store/pilot/MrtStore.ts
+++ b/apps/dispatch/app/_store/pilot/MrtStore.ts
@@ -67,7 +67,7 @@ export const useMrtStore = create(
page: "home",
lines: [
{
- textLeft: `VAR#.${station?.bosCallsign}`,
+ textLeft: `${station?.bosCallsign}`,
style: { fontWeight: "bold" },
textSize: "2",
},
@@ -92,7 +92,7 @@ export const useMrtStore = create(
page: "sending-status",
lines: [
{
- textLeft: `VAR#.${station?.bosCallsign}`,
+ textLeft: `${station?.bosCallsign}`,
style: { fontWeight: "bold" },
textSize: "2",
},
@@ -116,7 +116,7 @@ export const useMrtStore = create(
page: "new-status",
lines: [
{
- textLeft: `VAR#.${station?.bosCallsign}`,
+ textLeft: `${station?.bosCallsign}`,
style: { fontWeight: "bold" },
textSize: "2",
},
diff --git a/apps/dispatch/app/_store/pilot/dmeStore.ts b/apps/dispatch/app/_store/pilot/dmeStore.ts
index b8d5d0e3..6bc6b11a 100644
--- a/apps/dispatch/app/_store/pilot/dmeStore.ts
+++ b/apps/dispatch/app/_store/pilot/dmeStore.ts
@@ -75,13 +75,17 @@ export const useDmeStore = create(
lines: [
{
textMid: pageData.station.bosCallsign
- ? `VAR#.${pageData.station.bosCallsign}`
+ ? `${pageData.station.bosCallsign}`
: "no Data",
style: { fontWeight: "bold" },
},
{ textMid: "⠀" },
{
- textMid: new Date().toLocaleDateString(),
+ textMid: new Date().toLocaleDateString("de-DE", {
+ year: "numeric",
+ month: "2-digit",
+ day: "2-digit",
+ }),
},
{
textMid: new Date().toLocaleTimeString(),
@@ -122,9 +126,7 @@ export const useDmeStore = create(
lines: [
{
textLeft: `${pageData.mission.missionKeywordAbbreviation}`,
- textRight: pageData.mission.Stations.map(
- (s) => s.bosCallsignShort,
- ).join(","),
+ textRight: pageData.mission.Stations.map((s) => s.bosCallsignShort).join(","),
style: { fontWeight: "bold" },
},
{
@@ -140,16 +142,14 @@ export const useDmeStore = create(
style: { fontWeight: "bold" },
},
{
- textLeft:
- pageData.mission.missionPatientInfo || "keine Daten",
+ textLeft: pageData.mission.missionPatientInfo || "keine Daten",
},
{
textMid: "Weitere Infos:",
style: { fontWeight: "bold" },
},
{
- textLeft:
- pageData.mission.missionAdditionalInfo || "keine Daten",
+ textLeft: pageData.mission.missionAdditionalInfo || "keine Daten",
},
],
});
diff --git a/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx b/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx
index 4c02114e..6a876dd3 100644
--- a/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx
+++ b/apps/dispatch/app/pilot/_components/navbar/_components/Connection.tsx
@@ -4,6 +4,7 @@ import { usePilotConnectionStore } from "_store/pilot/connectionStore";
import { useEffect, useRef, useState } from "react";
import { useQuery } from "@tanstack/react-query";
import { getStationsAPI } from "_querys/stations";
+import toast from "react-hot-toast";
export const ConnectionBtn = () => {
const modalRef = useRef(null);
@@ -15,6 +16,7 @@ export const ConnectionBtn = () => {
logoffTime: null,
selectedStationId: null,
});
+ const [logoffDebounce, setLogoffDebounce] = useState(null);
const { data: stations } = useQuery({
queryKey: ["stations"],
@@ -73,37 +75,45 @@ export const ConnectionBtn = () => {
) : (
Als Pilot anmelden
)}
-
+ {connection.status !== "connected" && (
+
+ )}