From 2cdbab9f28daa02503283b180325d0d89775b183 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Sat, 5 Jul 2025 00:59:22 -0700 Subject: [PATCH] some Fixes, see #45 --- .../_components/pannel/MissionForm.tsx | 134 ++++++------ .../navbar/_components/Connection.tsx | 61 +++--- .../app/_components/map/AircraftMarker.tsx | 1 + .../map/_components/MissionMarkerTabs.tsx | 11 + apps/dispatch/app/_querys/osm.ts | 3 +- .../app/api/aircrafts/positionlog/route.ts | 3 + .../admin/user/[id]/_components/forms.tsx | 10 +- apps/hub/app/_components/PaginatedTable.tsx | 1 + .../components/PenaltyDropdown.tsx | 192 ++++++++++-------- 9 files changed, 240 insertions(+), 176 deletions(-) diff --git a/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx b/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx index 6eb676e4..312be934 100644 --- a/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx +++ b/apps/dispatch/app/(app)/dispatch/_components/pannel/MissionForm.tsx @@ -296,6 +296,7 @@ export const MissionForm = () => { + {form.watch("type") === "primär" && ( <> { - const keyword = keywords?.find((k) => k.abreviation === e.target.value); - form.setValue("missionKeywordName", keyword?.name || (null as any)); - form.setValue("missionKeywordAbbreviation", keyword?.abreviation || (null as any)); - form.setValue("hpgMissionString", null); - }} - value={form.watch("missionKeywordAbbreviation") || "please_select"} - > - - {keywords && - keywords - .filter((k) => k.category === form.watch("missionKeywordCategory")) - .map((keyword) => ( - - ))} - - {form.formState.errors.missionKeywordAbbreviation && ( -

Bitte wähle ein Stichwort aus.

- )} -
- - {validationRequired && ( -

Szenario wird vor Alarmierung HPG-Validiert.

- )} -
)} + + {form.formState.errors.missionKeywordAbbreviation && ( +

Bitte wähle ein Stichwort aus.

+ )} +
+ + {validationRequired && ( +

Szenario wird vor Alarmierung HPG-Validiert.

+ )} +
+