From 4eb46cb783f7fa565a446789fcdeb1098bbe4560 Mon Sep 17 00:00:00 2001 From: nocnico Date: Fri, 25 Jul 2025 16:39:21 +0200 Subject: [PATCH] fixed #100 // fix Marker Cluster naming, fix Marker Popup settings not used --- apps/dispatch-server/socket-events/connect-dispatch.ts | 4 ++-- apps/dispatch/app/_components/map/MissionMarkers.tsx | 2 +- .../app/_components/map/_components/MarkerCluster.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/dispatch-server/socket-events/connect-dispatch.ts b/apps/dispatch-server/socket-events/connect-dispatch.ts index 192fd25f..853e1d7c 100644 --- a/apps/dispatch-server/socket-events/connect-dispatch.ts +++ b/apps/dispatch-server/socket-events/connect-dispatch.ts @@ -70,7 +70,7 @@ export const handleConnectDispatch = userId: user.id, }, }); - if (discordAccount?.id) { + if (discordAccount?.id && !ghostMode) { await renameMember( discordAccount.discordId.toString(), `${getPublicUser(user).fullName} • ${selectedZone}`, @@ -99,7 +99,7 @@ export const handleConnectDispatch = io.to("dispatchers").emit("dispatchers-update"); io.to("pilots").emit("dispatchers-update"); - if (discordAccount?.id) { + if (discordAccount?.id && !ghostMode) { await renameMember( discordAccount.discordId.toString(), `${getPublicUser(user).fullName} - ${user.publicId}`, diff --git a/apps/dispatch/app/_components/map/MissionMarkers.tsx b/apps/dispatch/app/_components/map/MissionMarkers.tsx index a748bc69..92a0de35 100644 --- a/apps/dispatch/app/_components/map/MissionMarkers.tsx +++ b/apps/dispatch/app/_components/map/MissionMarkers.tsx @@ -253,7 +253,7 @@ const MissionMarker = ({ tab: "home", }, ], - close: openMissionMarker?.map((m) => m.id) || [], + close: [], }); } }; diff --git a/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx b/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx index 8dbcd078..249ff8b5 100644 --- a/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx +++ b/apps/dispatch/app/_components/map/_components/MarkerCluster.tsx @@ -158,7 +158,7 @@ const PopupContent = ({ {aircraft.Station.bosCallsign.length > 15 - ? aircraft.Station.locationStateShort + ? aircraft.Station.bosCallsignShort : aircraft.Station.bosCallsign}