From 115296d7f74b57a254b7b00f49988ec0eeb4e665 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Wed, 23 Jul 2025 18:48:49 -0700 Subject: [PATCH] fixed #92 --- .../app/_components/left/SituationBoard.tsx | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/apps/dispatch/app/_components/left/SituationBoard.tsx b/apps/dispatch/app/_components/left/SituationBoard.tsx index 874234b3..fb2a67da 100644 --- a/apps/dispatch/app/_components/left/SituationBoard.tsx +++ b/apps/dispatch/app/_components/left/SituationBoard.tsx @@ -9,6 +9,7 @@ import { getConnectedAircraftsAPI } from "_querys/aircrafts"; import { FMS_STATUS_COLORS, FMS_STATUS_TEXT_COLORS } from "_helpers/fmsStatusColors"; import { useMapStore } from "_store/mapStore"; import { useDispatchConnectionStore } from "_store/dispatch/connectionStore"; +import { findLeitstelleForPosition } from "_helpers/findLeitstelleinPoint"; export const SituationBoard = () => { const { setSituationTabOpen, situationTabOpen } = useLeftMenuStore(); @@ -64,17 +65,17 @@ export const SituationBoard = () => { setSituationTabOpen(!situationTabOpen); }} > - + {situationTabOpen && (
-

+

Einsatzliste{" "}

@@ -90,8 +91,8 @@ export const SituationBoard = () => {
-
- +
+
{/* head */} @@ -145,13 +146,13 @@ export const SituationBoard = () => {
-
+
-

+

Stationen

-
- +
+
@@ -186,7 +187,7 @@ export const SituationBoard = () => { > - + ))}
BOS Name{station.Station.bosCallsignShort} { > {station.fmsStatus} {station.Station.bosRadioArea} + {station.posLng || !station.posLat ? ( + <>{findLeitstelleForPosition(station.posLng!, station.posLat!)} + ) : ( + station.Station.bosRadioArea + )} +