Added HPG validation
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
Hash,
|
||||
ListCollapse,
|
||||
LocateFixed,
|
||||
Lollipop,
|
||||
MapPin,
|
||||
Mountain,
|
||||
Navigation,
|
||||
@@ -252,6 +253,14 @@ const RettungsmittelTab = ({
|
||||
<CircleGaugeIcon size={16} /> ALT: {aircraft.posAlt} ft
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center text-sm font-semibold justify-between pr-2 mt-2">
|
||||
<span className="flex items-center gap-2">
|
||||
<Lollipop size={16} />{" "}
|
||||
<span className={cn(aircraft.posH145active && "text-green-500")}>
|
||||
{aircraft.posH145active ? "H145 Aktiv" : "H145 Inaktiv"}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -306,8 +315,14 @@ const SDSTab = ({
|
||||
const dispatcherConnected = useDispatchConnectionStore((s) => s.status) === "connected";
|
||||
|
||||
const sendSdsMutation = useMutation({
|
||||
mutationFn: async ({ id, message }: { id: number; message: MissionSdsLog }) => {
|
||||
await sendSdsMessageAPI(id, message);
|
||||
mutationFn: async ({
|
||||
missionId,
|
||||
sdsMessage,
|
||||
}: {
|
||||
missionId?: number;
|
||||
sdsMessage: MissionSdsLog;
|
||||
}) => {
|
||||
await sendSdsMessageAPI({ missionId, sdsMessage });
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ["missions"],
|
||||
});
|
||||
@@ -348,11 +363,10 @@ const SDSTab = ({
|
||||
<button
|
||||
className="btn btn-sm btn-primary btn-outline"
|
||||
onClick={() => {
|
||||
if (!mission) return;
|
||||
sendSdsMutation
|
||||
.mutateAsync({
|
||||
id: mission.id,
|
||||
message: {
|
||||
missionId: mission?.id,
|
||||
sdsMessage: {
|
||||
type: "sds-log",
|
||||
auto: false,
|
||||
timeStamp: new Date().toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user