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)} - /> - + ) : ( +
+ setNote(e.target.value)} + /> + + - + }} + > + + +
+ )}
- )} -
-
+
+
+ )}