v2.0.2 #119
@@ -122,7 +122,7 @@ const HeliportsLayer = () => {
|
||||
};
|
||||
|
||||
const filterVisibleHeliports = () => {
|
||||
const bounds = map.getBounds();
|
||||
const bounds = map?.getBounds();
|
||||
if (!heliports?.length) return;
|
||||
// Filtere die Heliports, die innerhalb der Kartenansicht liegen
|
||||
const visibleHeliports = heliports.filter((heliport) => {
|
||||
|
||||
@@ -12,6 +12,7 @@ import { useDispatchConnectionStore } from "_store/dispatch/connectionStore";
|
||||
export const MapAdditionals = () => {
|
||||
const { isOpen, missionFormValues } = usePannelStore((state) => state);
|
||||
const dispatcherConnectionState = useDispatchConnectionStore((state) => state.status);
|
||||
|
||||
const { data: missions = [] } = useQuery({
|
||||
queryKey: ["missions"],
|
||||
queryFn: () =>
|
||||
@@ -35,7 +36,8 @@ export const MapAdditionals = () => {
|
||||
m.state === "draft" &&
|
||||
m.hpgLocationLat &&
|
||||
dispatcherConnectionState === "connected" &&
|
||||
m.hpgLocationLng,
|
||||
m.hpgLocationLng &&
|
||||
mapStore.openMissionMarker.find((openMission) => openMission.id === m.id),
|
||||
);
|
||||
|
||||
return (
|
||||
@@ -56,7 +58,7 @@ export const MapAdditionals = () => {
|
||||
key={mission.id}
|
||||
position={[mission.hpgLocationLat!, mission.hpgLocationLng!]}
|
||||
icon={L.icon({
|
||||
iconUrl: "/icons/mapMarker.png",
|
||||
iconUrl: "/icons/mapMarkerAttention.png",
|
||||
iconSize: [40, 40],
|
||||
iconAnchor: [20, 35],
|
||||
})}
|
||||
|
||||
@@ -23,7 +23,7 @@ export const MISSION_STATUS_COLORS: Record<MissionState | "attention", string> =
|
||||
draft: "#0092b8",
|
||||
running: "#155dfc",
|
||||
finished: "#155dfc",
|
||||
attention: "rgb(186,105,0)",
|
||||
attention: "#ba6900",
|
||||
};
|
||||
|
||||
export const MISSION_STATUS_TEXT_COLORS: Record<MissionState, string> = {
|
||||
|
||||
BIN
apps/dispatch/public/icons/mapMarkerAttention.png
Normal file
BIN
apps/dispatch/public/icons/mapMarkerAttention.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
@@ -2,7 +2,7 @@
|
||||
import { useState } from "react";
|
||||
import { Button, cn } from "@repo/shared-components";
|
||||
import MDEditor from "@uiw/react-md-editor";
|
||||
import { RefreshCw } from "lucide-react";
|
||||
import { Check, RefreshCw } from "lucide-react";
|
||||
import { Changelog } from "@repo/db";
|
||||
|
||||
export const ChangelogModal = ({
|
||||
@@ -50,7 +50,8 @@ export const ChangelogModal = ({
|
||||
|
||||
<div className="modal-action">
|
||||
<Button className="btn btn-info btn-outline" onClick={onClose}>
|
||||
Weiter zum HUB
|
||||
<Check size={20} />
|
||||
gelesen
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user