))}
diff --git a/src/features/dashboard/hooks/useGetSystemHealth.ts b/src/features/dashboard/hooks/useGetSystemHealth.ts
index d9599d6..afbbc3b 100644
--- a/src/features/dashboard/hooks/useGetSystemHealth.ts
+++ b/src/features/dashboard/hooks/useGetSystemHealth.ts
@@ -1,7 +1,8 @@
import { useQuery } from "@tanstack/react-query";
+import { CAMBASE } from "../../../utils/config";
const fetchData = async () => {
- const response = await fetch(`http://100.115.148.59/api/system-health`);
+ const response = await fetch(`${CAMBASE}/api/system-health`);
if (!response.ok) throw new Error("Cannot get System overview");
return response.json();
};
diff --git a/src/features/output/components/ChannelFields.tsx b/src/features/output/components/ChannelFields.tsx
index b3ab4c4..1633ac8 100644
--- a/src/features/output/components/ChannelFields.tsx
+++ b/src/features/output/components/ChannelFields.tsx
@@ -46,217 +46,224 @@ const ChannelFields = ({ errors, touched, values, outputData, onSetFieldValue }:
onSetFieldValue(key, value);
}
}, [channelFieldsObject, onSetFieldValue, outputData]);
+
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {values.format.toLowerCase() === "utmc" && (
+ {values.format.toLowerCase() !== "ftp" ? (
<>
-
-
{values.format} Constants
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
-
+
-
-
+
+
+
+
+ {values.format.toLowerCase() === "utmc" && (
+ <>
+
+
{values.format} Constants
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ )}
+ {values.format?.toLowerCase() === "bof2" && (
+ <>
+
+
+
{values.format} Constants
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{values.format} Lane ID Config
+
+
+
+
+
+
+
+
+
+
+ >
+ )}
>
- )}
- {values.format?.toLowerCase() === "bof2" && (
- <>
-
-
-
{values.format} Constants
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{values.format} Lane ID Config
-
-
-
-
-
-
-
-
-
-
- >
+ ) : (
+ <>>
)}
);
diff --git a/src/features/output/components/OutputForms.tsx b/src/features/output/components/OutputForms.tsx
index aa52ece..8ab9e50 100644
--- a/src/features/output/components/OutputForms.tsx
+++ b/src/features/output/components/OutputForms.tsx
@@ -10,6 +10,7 @@ const OutputForms = () => {
const { bearerMutation } = usePostBearerConfig();
const { dispatcherQuery, dispatcherMutation } = useDispatcherConfig();
+ const isLoading = dispatcherQuery?.isLoading;
const format = dispatcherQuery?.data?.propFormat?.value;
const { optionalConstantsQuery, optionalConstantsMutation } = useOptionalConstants(format?.toLowerCase());
const FFID = optionalConstantsQuery?.data?.propFeedIdentifier?.value;
@@ -38,6 +39,8 @@ const OutputForms = () => {
laneId: "",
LID1: "",
LID2: "",
+
+ // ftp - fields
};
const handleSubmit = async (values: FormTypes) => {
@@ -85,6 +88,10 @@ const OutputForms = () => {
}
};
+ if (isLoading) {
+ return
Loading...