Add Online Icon to MissionForm Rettungsmittel selection, disable measurement tools from Context Menu

This commit is contained in:
nocnico
2025-06-08 13:24:03 +02:00
parent 890cf27261
commit fa3757e1ee
2 changed files with 9 additions and 2 deletions

View File

@@ -158,6 +158,7 @@ export const ContextMenu = () => {
style={{ transform: "translateY(-50%)" }}
onMouseEnter={() => setRulerHover(true)}
onMouseLeave={() => setRulerHover(false)}
disabled
>
<Ruler size={20} />
</button>

View File

@@ -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 */
<span className="flex items-center gap-2">
<Radio className="text-success" size={15} />
{s.bosCallsign}
</span>
),
value: s.id,
}))}
/>