From 4d93ceaf1cf0559f5d70b7680ca76c3907b9ff36 Mon Sep 17 00:00:00 2001
From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com>
Date: Thu, 16 Oct 2025 18:05:15 +0200
Subject: [PATCH] =?UTF-8?q?Kein=20Szenerie=20als=20Standart=20+=20keine=20?=
=?UTF-8?q?Validierung=20f=C3=BCr=20dieses=20Szenario?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../dispatch-server/socket-events/connect-pilot.ts | 1 +
.../dispatch/_components/pannel/MissionForm.tsx | 12 +++++++-----
apps/dispatch/app/_components/map/ContextMenu.tsx | 14 +-------------
3 files changed, 9 insertions(+), 18 deletions(-)
diff --git a/apps/dispatch-server/socket-events/connect-pilot.ts b/apps/dispatch-server/socket-events/connect-pilot.ts
index d8710639..bd9fcc85 100644
--- a/apps/dispatch-server/socket-events/connect-pilot.ts
+++ b/apps/dispatch-server/socket-events/connect-pilot.ts
@@ -97,6 +97,7 @@ export const handleConnectPilot =
posLat: randomPos?.lat,
posLng: randomPos?.lng,
posXplanePluginActive: debug ? true : undefined,
+ posH145active: debug ? true : undefined,
},
});
diff --git a/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx b/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx
index 9740c983..2c53cfa6 100644
--- a/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx
+++ b/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx
@@ -119,11 +119,12 @@ export const MissionForm = () => {
});
const { missionFormValues, setOpen } = usePannelStore((state) => state);
- const validationRequired = HPGValidationRequired(
- form.watch("missionStationIds"),
- aircrafts,
- form.watch("hpgMissionString"),
- );
+ const validationRequired =
+ HPGValidationRequired(
+ form.watch("missionStationIds"),
+ aircrafts,
+ form.watch("hpgMissionString"),
+ ) && !form.watch("hpgMissionString")?.startsWith("kein Szenario");
useEffect(() => {
if (session.data?.user.id) {
@@ -371,6 +372,7 @@ export const MissionForm = () => {
+
{keywords &&
keywords
.find((k) => k.name === form.watch("missionKeywordName"))
diff --git a/apps/dispatch/app/_components/map/ContextMenu.tsx b/apps/dispatch/app/_components/map/ContextMenu.tsx
index 7d65038f..874ea0fd 100644
--- a/apps/dispatch/app/_components/map/ContextMenu.tsx
+++ b/apps/dispatch/app/_components/map/ContextMenu.tsx
@@ -3,19 +3,7 @@ import { OSMWay } from "@repo/db";
import { useDispatchConnectionStore } from "_store/dispatch/connectionStore";
import { useMapStore } from "_store/mapStore";
import { usePannelStore } from "_store/pannelStore";
-import { XplaneObject } from "@repo/db";
-import {
- MapPin,
- MapPinned,
- Radius,
- Search,
- RulerDimensionLine,
- Scan,
- Car,
- Ambulance,
- Siren,
- Flame,
-} from "lucide-react";
+import { MapPin, MapPinned, Search, Car, Ambulance, Siren, Flame } from "lucide-react";
import { getOsmAddress } from "_querys/osm";
import { useEffect, useState } from "react";
import toast from "react-hot-toast";