Kein Szenerie als Standart + keine Validierung für dieses Szenario
This commit is contained in:
@@ -97,6 +97,7 @@ export const handleConnectPilot =
|
||||
posLat: randomPos?.lat,
|
||||
posLng: randomPos?.lng,
|
||||
posXplanePluginActive: debug ? true : undefined,
|
||||
posH145active: debug ? true : undefined,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -119,11 +119,12 @@ export const MissionForm = () => {
|
||||
});
|
||||
const { missionFormValues, setOpen } = usePannelStore((state) => state);
|
||||
|
||||
const validationRequired = HPGValidationRequired(
|
||||
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 = () => {
|
||||
<option disabled value="please_select">
|
||||
Einsatz Szenario auswählen...
|
||||
</option>
|
||||
<option value={"kein Szenario:3_1_1_1-4_1"}>Kein Szenario</option>
|
||||
{keywords &&
|
||||
keywords
|
||||
.find((k) => k.name === form.watch("missionKeywordName"))
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user