Plazierung von X Plane Objekten
This commit is contained in:
@@ -145,6 +145,7 @@ export const MissionForm = () => {
|
||||
return;
|
||||
}
|
||||
for (const key in missionFormValues) {
|
||||
console.debug(key, missionFormValues[key as keyof MissionOptionalDefaults]);
|
||||
if (key === "addressOSMways") continue; // Skip addressOSMways as it is handled separately
|
||||
form.setValue(
|
||||
key as keyof MissionOptionalDefaults,
|
||||
@@ -416,11 +417,20 @@ export const MissionForm = () => {
|
||||
In diesem Einsatz gibt es {form.watch("addressOSMways").length} Gebäude
|
||||
</p>
|
||||
|
||||
<p
|
||||
className={cn("text-sm text-gray-500", form.watch("addressOSMways").length && "text-info")}
|
||||
>
|
||||
In diesem Einsatz gibt es {form.watch("xPlaneObjects").length} Objekte
|
||||
</p>
|
||||
<div className="flex items-center justify-between">
|
||||
<p
|
||||
className={cn("text-sm text-gray-500", form.watch("xPlaneObjects").length && "text-info")}
|
||||
>
|
||||
In diesem Einsatz gibt es {form.watch("xPlaneObjects").length} Objekte
|
||||
</p>
|
||||
<button
|
||||
disabled={!(form.watch("xPlaneObjects")?.length > 0)}
|
||||
className="btn btn-xs btn-error mt-2"
|
||||
onClick={() => form.setValue("xPlaneObjects", [])}
|
||||
>
|
||||
löschen
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="form-control min-h-[140px]">
|
||||
<div className="flex gap-2">
|
||||
|
||||
Reference in New Issue
Block a user