E Nr, Karte Zentrieren, Statin-select

This commit is contained in:
PxlLoewe
2025-07-08 19:23:49 -07:00
parent e9c63605ce
commit 30a4f6488f
5 changed files with 17 additions and 19 deletions

View File

@@ -71,7 +71,7 @@ const AircraftPopupContent = ({
}
}, [currentTab, aircraft, mission]);
const setOpenAircraftMarker = useMapStore((state) => state.setOpenAircraftMarker);
const { setOpenAircraftMarker, setMap } = useMapStore((state) => state);
const { anchor } = useSmartPopup();
return (
<>
@@ -133,7 +133,13 @@ const AircraftPopupContent = ({
style={{
backgroundColor: `${FMS_STATUS_COLORS[aircraft.fmsStatus]}`,
}}
/* onClick={() => handleTabChange("fms")} */
onClick={() => {
if (!aircraft.posLat || !aircraft.posLng) return;
setMap({
center: [aircraft.posLat, aircraft.posLng],
zoom: 14,
});
}}
>
<ChevronsRightLeft className="text-sm" />
</div>

View File

@@ -442,6 +442,7 @@ const SDSTab = ({
<button
className="btn btn-sm btn-primary btn-outline"
onClick={() => {
if (!note.trim()) return;
sendSds();
}}
>