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