Added HPG validation
This commit is contained in:
@@ -135,6 +135,8 @@ export const MissionForm = () => {
|
||||
}
|
||||
}, [missionFormValues, form, defaultFormValues]);
|
||||
|
||||
console.log("Mission HPG String", form.watch("hpgMissionString"));
|
||||
|
||||
const saveMission = async (
|
||||
mission: MissionOptionalDefaults,
|
||||
{ alertWhenValid = false, createNewMission = false } = {},
|
||||
@@ -287,9 +289,9 @@ export const MissionForm = () => {
|
||||
);
|
||||
form.setValue("hpgMissionString", "");
|
||||
}}
|
||||
defaultValue=""
|
||||
value={form.watch("missionKeywordCategory") || "please_select"}
|
||||
>
|
||||
<option disabled value="">
|
||||
<option disabled value="please_select">
|
||||
Einsatz Kategorie auswählen...
|
||||
</option>
|
||||
{Object.keys(KEYWORD_CATEGORY).map((use) => (
|
||||
@@ -310,9 +312,9 @@ export const MissionForm = () => {
|
||||
form.setValue("missionKeywordAbbreviation", keyword?.abreviation || (null as any));
|
||||
form.setValue("hpgMissionString", "default");
|
||||
}}
|
||||
defaultValue="default"
|
||||
value={form.watch("missionKeywordAbbreviation") || "please_select"}
|
||||
>
|
||||
<option disabled value={""}>
|
||||
<option disabled value={"please_select"}>
|
||||
Einsatzstichwort auswählen...
|
||||
</option>
|
||||
{keywords &&
|
||||
@@ -331,7 +333,7 @@ export const MissionForm = () => {
|
||||
<select
|
||||
{...form.register("hpgMissionString")}
|
||||
className="select select-primary select-bordered w-full"
|
||||
defaultValue="default"
|
||||
value={form.watch("hpgMissionString") || ""}
|
||||
>
|
||||
<option disabled value="">
|
||||
Einsatz Szenario auswählen...
|
||||
|
||||
@@ -7,10 +7,12 @@ import dynamic from "next/dynamic";
|
||||
import { Chat } from "../_components/left/Chat";
|
||||
import { Report } from "../_components/left/Report";
|
||||
import { SituationBoard } from "_components/left/SituationBoard";
|
||||
|
||||
const Map = dynamic(() => import("../_components/map/Map"), { ssr: false });
|
||||
|
||||
const DispatchPage = () => {
|
||||
const { isOpen } = usePannelStore();
|
||||
/* return null; */
|
||||
return (
|
||||
<div className="relative flex-1 flex transition-all duration-500 ease w-full">
|
||||
{/* <MapToastCard2 /> */}
|
||||
|
||||
Reference in New Issue
Block a user