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,
|
posLat: randomPos?.lat,
|
||||||
posLng: randomPos?.lng,
|
posLng: randomPos?.lng,
|
||||||
posXplanePluginActive: debug ? true : undefined,
|
posXplanePluginActive: debug ? true : undefined,
|
||||||
|
posH145active: debug ? true : undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -119,11 +119,12 @@ export const MissionForm = () => {
|
|||||||
});
|
});
|
||||||
const { missionFormValues, setOpen } = usePannelStore((state) => state);
|
const { missionFormValues, setOpen } = usePannelStore((state) => state);
|
||||||
|
|
||||||
const validationRequired = HPGValidationRequired(
|
const validationRequired =
|
||||||
|
HPGValidationRequired(
|
||||||
form.watch("missionStationIds"),
|
form.watch("missionStationIds"),
|
||||||
aircrafts,
|
aircrafts,
|
||||||
form.watch("hpgMissionString"),
|
form.watch("hpgMissionString"),
|
||||||
);
|
) && !form.watch("hpgMissionString")?.startsWith("kein Szenario");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (session.data?.user.id) {
|
if (session.data?.user.id) {
|
||||||
@@ -371,6 +372,7 @@ export const MissionForm = () => {
|
|||||||
<option disabled value="please_select">
|
<option disabled value="please_select">
|
||||||
Einsatz Szenario auswählen...
|
Einsatz Szenario auswählen...
|
||||||
</option>
|
</option>
|
||||||
|
<option value={"kein Szenario:3_1_1_1-4_1"}>Kein Szenario</option>
|
||||||
{keywords &&
|
{keywords &&
|
||||||
keywords
|
keywords
|
||||||
.find((k) => k.name === form.watch("missionKeywordName"))
|
.find((k) => k.name === form.watch("missionKeywordName"))
|
||||||
|
|||||||
@@ -3,19 +3,7 @@ import { OSMWay } from "@repo/db";
|
|||||||
import { useDispatchConnectionStore } from "_store/dispatch/connectionStore";
|
import { useDispatchConnectionStore } from "_store/dispatch/connectionStore";
|
||||||
import { useMapStore } from "_store/mapStore";
|
import { useMapStore } from "_store/mapStore";
|
||||||
import { usePannelStore } from "_store/pannelStore";
|
import { usePannelStore } from "_store/pannelStore";
|
||||||
import { XplaneObject } from "@repo/db";
|
import { MapPin, MapPinned, Search, Car, Ambulance, Siren, Flame } from "lucide-react";
|
||||||
import {
|
|
||||||
MapPin,
|
|
||||||
MapPinned,
|
|
||||||
Radius,
|
|
||||||
Search,
|
|
||||||
RulerDimensionLine,
|
|
||||||
Scan,
|
|
||||||
Car,
|
|
||||||
Ambulance,
|
|
||||||
Siren,
|
|
||||||
Flame,
|
|
||||||
} from "lucide-react";
|
|
||||||
import { getOsmAddress } from "_querys/osm";
|
import { getOsmAddress } from "_querys/osm";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import toast from "react-hot-toast";
|
import toast from "react-hot-toast";
|
||||||
|
|||||||
Reference in New Issue
Block a user