From c3ed3e4431a3f8484edcce23546b3f86a79c8ba8 Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Tue, 16 Nov 2021 16:06:09 +0100 Subject: [PATCH] expand first 3 pipelines by default --- .../trained_models/models_management/pipelines/pipelines.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/public/application/trained_models/models_management/pipelines/pipelines.tsx b/x-pack/plugins/ml/public/application/trained_models/models_management/pipelines/pipelines.tsx index b5e7e1f3e7def..7167ed7537f2d 100644 --- a/x-pack/plugins/ml/public/application/trained_models/models_management/pipelines/pipelines.tsx +++ b/x-pack/plugins/ml/public/application/trained_models/models_management/pipelines/pipelines.tsx @@ -34,7 +34,9 @@ export const ModelPipelines: FC = ({ pipelines, ingestStats return ( <> - {Object.entries(pipelines).map(([pipelineName, pipelineDefinition]) => { + {Object.entries(pipelines).map(([pipelineName, pipelineDefinition], i) => { + // Expand first 3 pipelines by default + const initialIsOpen = i <= 2; return ( <> = ({ pipelines, ingestStats } paddingSize="l" + initialIsOpen={initialIsOpen} > {ingestStats?.pipelines ? (