From fa3757e1ee7791b75c07bceecbe154a2fa423251 Mon Sep 17 00:00:00 2001 From: nocnico Date: Sun, 8 Jun 2025 13:24:03 +0200 Subject: [PATCH] Add Online Icon to MissionForm Rettungsmittel selection, disable measurement tools from Context Menu --- apps/dispatch/app/_components/map/ContextMenu.tsx | 1 + .../app/dispatch/_components/pannel/MissionForm.tsx | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/dispatch/app/_components/map/ContextMenu.tsx b/apps/dispatch/app/_components/map/ContextMenu.tsx index cedbb47d..008c9175 100644 --- a/apps/dispatch/app/_components/map/ContextMenu.tsx +++ b/apps/dispatch/app/_components/map/ContextMenu.tsx @@ -158,6 +158,7 @@ export const ContextMenu = () => { style={{ transform: "translateY(-50%)" }} onMouseEnter={() => setRulerHover(true)} onMouseLeave={() => setRulerHover(false)} + disabled > diff --git a/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx b/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx index 44bf6bc8..1468c05d 100644 --- a/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx +++ b/apps/dispatch/app/dispatch/_components/pannel/MissionForm.tsx @@ -2,7 +2,7 @@ import React, { useEffect } from "react"; import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; -import { BellRing, BookmarkPlus } from "lucide-react"; +import { BellRing, BookmarkPlus, Radio } from "lucide-react"; import { Select } from "_components/Select"; import { KEYWORD_CATEGORY, Mission, missionType, Prisma } from "@repo/db"; import { @@ -260,7 +260,13 @@ export const MissionForm = () => { isMulti form={form} options={stations?.map((s) => ({ - label: s.bosCallsign, + label: ( + /* TODO: Only show radio icon if station online and sort online stations to the top */ + + + {s.bosCallsign} + + ), value: s.id, }))} />