From 8067918bd1f781b6def619a1b91a3a53e7e28bd2 Mon Sep 17 00:00:00 2001 From: Jens Scheffler Date: Thu, 2 Jan 2025 16:40:56 +0100 Subject: [PATCH] Add an alert that form ist not fully implemented --- airflow/ui/src/components/FlexibleForm/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/airflow/ui/src/components/FlexibleForm/index.tsx b/airflow/ui/src/components/FlexibleForm/index.tsx index d08ce20f22dce9..f3eae7331f6f6d 100644 --- a/airflow/ui/src/components/FlexibleForm/index.tsx +++ b/airflow/ui/src/components/FlexibleForm/index.tsx @@ -20,7 +20,7 @@ import { Stack, StackSeparator } from "@chakra-ui/react"; import type { DagParamsSpec, ParamSpec } from "src/queries/useDagParams"; -import { Accordion } from "../ui"; +import { Accordion, Alert } from "../ui"; import { FlexibleFormRow } from "./FlexibleFormRow"; type FlexibleFormProps = { @@ -34,13 +34,17 @@ export type FlexibleFormElementProps = { }; const FlexibleForm = ({ params }: FlexibleFormProps) => { - // TODO: Add a note that the form is not "working" until onBlur not implemented - // ...or add a note as altert when the form is "used" const processedSections = new Map(); return ( <> }> + {Object.keys(params).length > 0 && ( + + )} {Object.entries(params) .filter(([, param]) => typeof param.schema.section !== "string") .map(([name, param]) => (