From 94ff6056ea0b471d50ec16f81123f890236a08ab Mon Sep 17 00:00:00 2001 From: Tyler Ohlsen Date: Wed, 16 Oct 2024 09:59:53 -0700 Subject: [PATCH] Move create/skip toggle in scrollable area Signed-off-by: Tyler Ohlsen --- .../workflow_inputs/workflow_inputs.tsx | 161 +++++++++--------- 1 file changed, 77 insertions(+), 84 deletions(-) diff --git a/public/pages/workflow_detail/workflow_inputs/workflow_inputs.tsx b/public/pages/workflow_detail/workflow_inputs/workflow_inputs.tsx index f8087377..e88545df 100644 --- a/public/pages/workflow_detail/workflow_inputs/workflow_inputs.tsx +++ b/public/pages/workflow_detail/workflow_inputs/workflow_inputs.tsx @@ -20,7 +20,6 @@ import { EuiModalHeader, EuiModalHeaderTitle, EuiPanel, - EuiSpacer, EuiStepsHorizontal, EuiText, EuiTitle, @@ -711,98 +710,92 @@ export function WorkflowInputs(props: WorkflowInputsProps) { )} - {onIngestAndUnprovisioned && ( - <> - - - - Create an ingest pipeline - - - Configure and ingest data into an index. - - - ), - }} - disabledOption={{ - id: INGEST_OPTION.SKIP, - label: ( - - - Skip ingestion pipeline - - - Use an existing index with data ingested. - - - ), - }} - showLabel={false} - /> - - )} - {!onIngestAndDisabled && ( - <> - - -

- {onIngestAndUnprovisioned ? ( - 'Define ingest pipeline' - ) : onIngestAndProvisioned ? ( - + +

+ {onIngestAndUnprovisioned ? ( + 'Define ingest pipeline' + ) : onIngestAndProvisioned ? ( + + Edit ingest pipeline + + setIsModalOpen(true)} > - - Edit ingest pipeline - - - setIsModalOpen(true)} - > - - {` `}Delete resources - - - - ) : ( - 'Define search pipeline' - )} -

-
- - - {onIngest ? ( + + {` `}Delete resources + + +
+ ) : ( + 'Define search pipeline' + )} +

+
+
+ + {onIngest ? ( + <> + {onIngestAndUnprovisioned && ( + <> + + + Create an ingest pipeline + + + Configure and ingest data into an index. + + + ), + }} + disabledOption={{ + id: INGEST_OPTION.SKIP, + label: ( + + + Skip ingestion pipeline + + + Use an existing index with data ingested. + + + ), + }} + showLabel={false} + /> + + )} + {!onIngestAndDisabled && ( - ) : ( - )} - - - )} + + ) : ( + + )} +