-
-
-
-
-
-
-
-
-
-
-
-
-
- setShowPwd((s) => !s)}
- icon={showPwd ? faEyeSlash : faEye}
- />
-
-
-
-
-
-
-
-
-
-
-
- {format?.toLowerCase() === "bof2" && (
- <>
-
-
{values.format} Constants
+ {format?.toLowerCase() !== "bof2" && format?.toLowerCase() !== "json" ? (
+ <>
+
+
+ Format coming soon
+
+
+ Output configuration currently supports JSON or{" "}
+ BOF2.
More formats will be added in future
+ updates.
+
+
+ >
+ ) : (
+ <>
+
-
+
+
+
+
+
+
+
+
+
+
+
+ setShowPwd((s) => !s)}
+ icon={showPwd ? faEyeSlash : faEye}
+ />
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+ {format?.toLowerCase() === "bof2" && (
+ <>
+
+
{values.format} Constants
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )}
-
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ )}
+
+
+
+
+ >
+ )}
>
);
};
diff --git a/src/components/SettingForms/SettingForms/SettingForms.tsx b/src/components/SettingForms/SettingForms/SettingForms.tsx
index e0517c7..54f3534 100644
--- a/src/components/SettingForms/SettingForms/SettingForms.tsx
+++ b/src/components/SettingForms/SettingForms/SettingForms.tsx
@@ -8,7 +8,6 @@ import type {
InitialValuesFormErrors,
OptionalBOF2Constants,
} from "../../../types/types";
-import { cleanArray } from "../../../utils/utils";
import { useQueryClient } from "@tanstack/react-query";
import { useUpdateBackOfficeConfig } from "../../../hooks/useBackOfficeConfig";
import { useState } from "react";
@@ -21,7 +20,6 @@ const SettingForms = () => {
const { bof2ConstantsQuery } = useGetDispatcherConfig();
const format = dispatcherQuery?.data?.propFormat?.value;
- const rawOptions = dispatcherQuery?.data?.propFormat?.accepted;
const enabled = dispatcherQuery?.data?.propEnabled?.value;
const FFID = bof2ConstantsQuery?.data?.propFeedIdentifier?.value;
@@ -29,8 +27,6 @@ const SettingForms = () => {
const GPSFormat = bof2ConstantsQuery?.data?.propGpsFormat?.value;
const timestampSource = bof2ConstantsQuery?.data?.propTimeZoneType?.value;
- const options = cleanArray(rawOptions);
-
const initialValues: BearerTypeFieldType & InitialValuesForm & OptionalBOF2Constants = {
format: format ?? "JSON",
enabled: enabled === "true",
@@ -109,7 +105,7 @@ const SettingForms = () => {
{({ isSubmitting, touched }) => (